summaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2023-04-03 23:19:53 +0100
committerGreg Roach <greg@subaqua.co.uk>2023-04-03 23:20:01 +0100
commitd43b95f50fc59d15ce34c15c3637ecb5a4e71ea8 (patch)
tree17abea6731f054ea1e5253dac65ad9767205742d /resources/views
parentd7de6d4c220d78064a12e37f3ddf086b400264cf (diff)
downloadwebtrees-d43b95f50fc59d15ce34c15c3637ecb5a4e71ea8.tar.gz
webtrees-d43b95f50fc59d15ce34c15c3637ecb5a4e71ea8.tar.bz2
webtrees-d43b95f50fc59d15ce34c15c3637ecb5a4e71ea8.zip
Merge: #4756 (part) - show location edit form in full-screen
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/admin/location-edit.phtml73
1 files changed, 30 insertions, 43 deletions
diff --git a/resources/views/admin/location-edit.phtml b/resources/views/admin/location-edit.phtml
index 525e7d7344..8290e716cd 100644
--- a/resources/views/admin/location-edit.phtml
+++ b/resources/views/admin/location-edit.phtml
@@ -26,62 +26,49 @@ use Fisharebest\Webtrees\View;
<h1><?= $title ?></h1>
-<div class="wt-fullscreen-container">
- <div id="wt-map" class="wt-ajax-load mb-3 border wt-location-edit-map" dir="ltr"></div>
-</div>
-
+<div class="row wt-location-edit-wrapper wt-fullscreen-container">
+ <div id="wt-map" class="col-sm-9 wt-ajax-load wt-location-edit-map" dir="ltr"></div>
-<form method="post" action="<?= e(route(MapDataSave::class)) ?>">
- <input type="hidden" name="parent_id" value="<?= $parent->id() ?>">
- <input type="hidden" name="place_id" value="<?= $location->id() ?>">
- <input type="hidden" name="url" value="<?= e($url) ?>">
+ <div class="col-sm-3">
+ <form method="post" action="<?= e(route(MapDataSave::class)) ?>">
+ <input type="hidden" name="parent_id" value="<?= $parent->id() ?>">
+ <input type="hidden" name="place_id" value="<?= $location->id() ?>">
+ <input type="hidden" name="url" value="<?= e($url) ?>">
- <div class="row mb-3">
- <label class="col-form-label col-sm-1" for="new_place_name">
- <?= I18N::translate('Place') ?>
- </label>
- <div class="col-sm-3">
+ <label class="col-form-label col-sm-6" for="new_place_name">
+ <?= I18N::translate('Place') ?>
+ </label>
<input type="text" id="new_place_name" name="new_place_name" value="<?= e($location->locationName()) ?>" class="form-control" required="required" maxlength="120" pattern="[^,]+" dir="auto">
- </div>
- </div>
- <div class="row mb-3">
- <label class="col-form-label col-sm-1" for="new_place_lati">
- <?= I18N::translate('Latitude') ?>
- </label>
- <div class="col-sm-3">
+ <label class="col-form-label col-sm-6" for="new_place_lati">
+ <?= I18N::translate('Latitude') ?>
+ </label>
<div class="input-group">
<input type="text" dir="ltr" id="new_place_lati" class="editable form-control" name="new_place_lati" placeholder="<?= I18N::translate('degrees') ?>" value="<?= e($latitude) ?>">
</div>
- </div>
- </div>
- <div class="row mb-3">
- <label class="col-form-label col-sm-1" for="new_place_long">
- <?= I18N::translate('Longitude') ?>
- </label>
- <div class="col-sm-3">
+ <label class="col-form-label" for="new_place_long">
+ <?= I18N::translate('Longitude') ?>
+ </label>
<div class="input-group">
<input type="text" dir="ltr" id="new_place_long" class="editable form-control" name="new_place_long" placeholder="<?= I18N::translate('degrees') ?>" value="<?= e($longitude) ?>">
</div>
- </div>
- </div>
- <div class="row mb-3">
- <div class="col-sm-10 offset-sm-1">
- <button class="btn btn-primary" type="submit">
- <?= /* I18N: A button label. */
- I18N::translate('save')
- ?>
- </button>
- <a class="btn btn-secondary" href="<?= e($url) ?>">
- <?= I18N::translate('cancel') ?>
- </a>
- </div>
- </div>
+ <div class="mt-3">
+ <button class="btn btn-primary" type="submit">
+ <?= /* I18N: A button label. */
+ I18N::translate('save')
+ ?>
+ </button>
+ <a class="btn btn-secondary" href="<?= e($url) ?>">
+ <?= I18N::translate('cancel') ?>
+ </a>
+ </div>
- <?= csrf_field() ?>
-</form>
+ <?= csrf_field() ?>
+ </form>
+ </div>
+</div>
<?php View::push('javascript') ?>
<script>