2016-10-04 14:25:39 +00:00
< div class = "modal-header" >
2017-03-29 14:53:58 +00:00
< button ng-if = "!noCancel" type = "button" class = "close" ng-click = "$dismiss()" > < span aria-hidden = "true" > × < / span > < / button >
2016-10-18 18:27:57 +00:00
< h3 class = "modal-title" > {{create ? 'Start collaborative map' : 'Map settings'}}< / h3 >
2016-10-04 14:25:39 +00:00
< / div >
< div class = "modal-body" >
2016-10-19 12:32:28 +00:00
< form class = "form-horizontal" ng-submit = "!writeError && !readError && save()" >
2016-10-26 11:15:38 +00:00
< div uib-alert class = "alert-danger" ng-show = "error" > {{error.message || error}}< / div >
2017-03-30 14:01:46 +00:00
< div class = "form-group" ng-class = "{'has-error': !!adminError}" >
< label for = "pad-link-input" class = "col-sm-3 control-label" > Admin Link< / label >
< div class = "col-sm-9" >
< div class = "input-group" >
< span class = "input-group-addon" > {{urlPrefix}}< / span >
2018-09-26 23:18:56 +00:00
< input id = "admin-link-input" ng-model = "padData.adminId" class = "form-control" / >
2017-03-30 14:01:46 +00:00
< span class = "input-group-btn" ng-if = "!create" >
2018-09-26 23:18:56 +00:00
< button type = "button" class = "btn btn-default" ng-click = "copy(urlPrefix + padData.adminId)" > Copy< / button >
2017-03-30 14:01:46 +00:00
< / span >
< / div >
< span class = "help-block" ng-if = "adminError" > {{adminError}}< / span >
< p class = "help-block" > When opening the map through this link, all parts of the map can be edited, including the map settings, object types and views.< / p >
< / div >
< / div >
2016-10-04 14:25:39 +00:00
2016-10-19 12:09:29 +00:00
< div class = "form-group" ng-class = "{'has-error': !!writeError}" >
2017-03-30 14:01:46 +00:00
< label for = "pad-link-input" class = "col-sm-3 control-label" > Editable Link< / label >
2016-10-11 15:09:01 +00:00
< div class = "col-sm-9" >
< div class = "input-group" >
< span class = "input-group-addon" > {{urlPrefix}}< / span >
2018-09-26 23:18:56 +00:00
< input id = "pad-link-input" ng-model = "padData.writeId" class = "form-control" / >
2016-10-11 16:56:46 +00:00
< span class = "input-group-btn" ng-if = "!create" >
2018-09-26 23:18:56 +00:00
< button type = "button" class = "btn btn-default" ng-click = "copy(urlPrefix + padData.writeId)" > Copy< / button >
2016-10-11 16:56:46 +00:00
< / span >
2016-10-11 15:09:01 +00:00
< / div >
2016-10-19 12:09:29 +00:00
< span class = "help-block" ng-if = "writeError" > {{writeError}}< / span >
2017-03-30 14:01:46 +00:00
< p class = "help-block" > When opening the map through this link, markers and lines can be added, changed and deleted, but the map settings, object types and views cannot be modified.< / p >
2016-10-11 15:09:01 +00:00
< / div >
2016-10-04 14:25:39 +00:00
< / div >
2014-12-26 03:05:07 +00:00
2016-10-19 12:09:29 +00:00
< div class = "form-group" ng-class = "{'has-error': !!readError}" >
2016-10-04 14:25:39 +00:00
< label for = "pad-rolink-input" class = "col-sm-3 control-label" > Read-only link< / label >
2016-10-11 15:09:01 +00:00
< div class = "col-sm-9" >
< div class = "input-group" >
< span class = "input-group-addon" > {{urlPrefix}}< / span >
2018-09-26 23:18:56 +00:00
< input id = "pad-rolink-input" ng-model = "padData.id" class = "form-control" / >
2016-10-11 16:56:46 +00:00
< span class = "input-group-btn" ng-if = "!create" >
2018-09-26 23:18:56 +00:00
< button type = "button" class = "btn btn-default" ng-click = "copy(urlPrefix + padData.id)" > Copy< / button >
2016-10-11 16:56:46 +00:00
< / span >
2016-10-11 15:09:01 +00:00
< / div >
2016-10-19 12:09:29 +00:00
< span class = "help-block" ng-if = "readError" > {{readError}}< / span >
2017-03-30 14:01:46 +00:00
< p class = "help-block" > When opening the map through this link, markers, lines and views can be seen, but nothing can be changed.< / p >
2016-10-11 15:09:01 +00:00
< / div >
2016-10-04 14:25:39 +00:00
< / div >
2014-12-26 03:05:07 +00:00
2016-10-04 14:25:39 +00:00
< div class = "form-group" >
2016-10-18 18:27:57 +00:00
< label for = "pad-name-input" class = "col-sm-3 control-label" > Map name< / label >
2017-02-26 15:26:22 +00:00
< div class = "col-sm-9" > < input id = "pad-name-input" ng-model = "padData.name" class = "form-control" / > < / div >
2016-10-04 14:25:39 +00:00
< / div >
2016-10-19 12:32:28 +00:00
2017-02-10 11:12:47 +00:00
< div class = "form-group" >
< label for = "search-engines-input" class = "col-sm-3 control-label" > Accessible for search engines< / label >
< div class = "col-sm-9" >
2017-02-26 15:26:22 +00:00
< input type = "checkbox" id = "search-engines-input" ng-model = "padData.searchEngines" / >
2017-02-10 11:12:47 +00:00
< p class = "help-block" > If this is enabled, search engines like Google will be allowed to add the read-only version of this map.< / p >
< / div >
< / div >
2017-11-11 13:16:04 +00:00
< div class = "form-group" ng-show = "padData.searchEngines" >
2017-02-10 11:12:47 +00:00
< label for = "description-input" class = "col-sm-3 control-label" > Short description< / label >
< div class = "col-sm-9" >
2017-02-26 15:26:22 +00:00
< input id = "description-input" ng-model = "padData.description" class = "form-control" / >
2017-02-10 11:12:47 +00:00
< p class = "help-block" > This description will be shown under the result in search engines.< / p >
< / div >
< / div >
2017-02-26 15:26:22 +00:00
< div class = "form-group" >
< label for = "cluster-markers-input" class = "col-sm-3 control-label" > Cluster markers< / label >
< div class = "col-sm-9" >
< input type = "checkbox" id = "cluster-markers-input" ng-model = "padData.clusterMarkers" / >
< p class = "help-block" > If enabled, when there are many markers in one area, they will be replaced by a placeholder at low zoom levels. This improves performance on maps with many markers.< / p >
< / div >
< / div >
2018-02-17 00:18:09 +00:00
< div class = "form-group" >
< label for = "legend1-input" class = "col-sm-3 control-label" > Legend text< / label >
< div class = "col-sm-9" >
< textarea id = "legend1-input" ng-model = "padData.legend1" class = "form-control" > < / textarea >
< textarea id = "legend2-input" ng-model = "padData.legend2" class = "form-control" > < / textarea >
< p class = "help-block" > Text that will be shown above and below the legend. Can be formatted with < a href = "http://commonmark.org/help/" target = "_blank" > Markdown< / a > .< / p >
< / div >
< / div >
2016-10-19 12:32:28 +00:00
< button type = "submit" class = "hidden" > < / button >
2016-10-04 14:25:39 +00:00
< / form >
2020-04-24 22:00:07 +00:00
< hr / >
< form class = "form-horizontal" ng-submit = "state.deleteConfirmation == 'DELETE' && confirm('Are you sure you want to delete the map “' + padData.name +'”? Deleted maps cannot be restored!') && deletePad()" >
< div class = "form-group" ng-if = "!create" >
< label for = "delete-input" class = "col-sm-3 control-label" > Delete map< / label >
< div class = "col-sm-9" >
< div class = "input-group" >
< input id = "delete-input" ng-model = "state.deleteConfirmation" class = "form-control" / >
< span class = "input-group-btn" >
< button type = "submit" class = "btn btn-danger" ng-disabled = "state.deleteConfirmation != 'DELETE'" > Delete map< / button >
< / span >
< / div >
< p class = "help-block" > To delete this map, type < code > DELETE< / code > into the field.< / p >
< / div >
< / div >
< / form >
2016-10-04 14:25:39 +00:00
< / div >
< div class = "modal-footer" >
2018-09-26 23:18:56 +00:00
< button ng-if = "!noCancel" type = "button" class = "btn btn-default" ng-click = "$dismiss()" ng-disabled = "saving" > {{create || isModified ? 'Cancel' : 'Close'}}< / button >
< button ng-show = "create || isModified" type = "submit" class = "btn btn-primary" ng-click = "save()" ng-disabled = "writeError || readError || saving" > {{create ? 'Create' : 'Save'}}< / button >
2016-10-04 14:25:39 +00:00
< / div >