summaryrefslogtreecommitdiff
path: root/resources/views/cards
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/cards')
-rw-r--r--resources/views/cards/add-associate.php22
-rw-r--r--resources/views/cards/add-media-object.php16
-rw-r--r--resources/views/cards/add-note.php16
-rw-r--r--resources/views/cards/add-restriction.php16
-rw-r--r--resources/views/cards/add-shared-note.php16
-rw-r--r--resources/views/cards/add-source-citation.php132
6 files changed, 109 insertions, 109 deletions
diff --git a/resources/views/cards/add-associate.php b/resources/views/cards/add-associate.php
index 2a660c2496..4951029ad5 100644
--- a/resources/views/cards/add-associate.php
+++ b/resources/views/cards/add-associate.php
@@ -2,16 +2,16 @@
<?php use Fisharebest\Webtrees\I18N; ?>
<div class="card mb-4">
- <div class="card-header">
- <a href="#" data-toggle="collapse" data-target="#add-associate-<?= e($id) ?>" aria-expanded="false" aria-controls="add-associate">
- <?= I18N::translate('Add an associate') ?>
- </a>
- </div>
+ <div class="card-header">
+ <a href="#" data-toggle="collapse" data-target="#add-associate-<?= e($id) ?>" aria-expanded="false" aria-controls="add-associate">
+ <?= I18N::translate('Add an associate') ?>
+ </a>
+ </div>
- <div class="card-body collapse" id="add-associate-<?= e($id) ?>">
- <?= FunctionsEdit::addSimpleTag($tree, $level . ' _ASSO @') ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' RELA') ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' NOTE') ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' SHARED_NOTE') ?>
- </div>
+ <div class="card-body collapse" id="add-associate-<?= e($id) ?>">
+ <?= FunctionsEdit::addSimpleTag($tree, $level . ' _ASSO @') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' RELA') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' NOTE') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' SHARED_NOTE') ?>
+ </div>
</div>
diff --git a/resources/views/cards/add-media-object.php b/resources/views/cards/add-media-object.php
index bca793aac3..2ea0b00c9c 100644
--- a/resources/views/cards/add-media-object.php
+++ b/resources/views/cards/add-media-object.php
@@ -2,13 +2,13 @@
<?php use Fisharebest\Webtrees\I18N; ?>
<div class="card mb-4">
- <div class="card-header">
- <a href="#" data-toggle="collapse" data-target="#add-media-object" aria-expanded="false" aria-controls="add-media-object">
- <?= I18N::translate('Add a media object') ?>
- </a>
- </div>
+ <div class="card-header">
+ <a href="#" data-toggle="collapse" data-target="#add-media-object" aria-expanded="false" aria-controls="add-media-object">
+ <?= I18N::translate('Add a media object') ?>
+ </a>
+ </div>
- <div class="card-body collapse" id="add-media-object">
- <?= FunctionsEdit::addSimpleTag($tree, $level . ' OBJE') ?>
- </div>
+ <div class="card-body collapse" id="add-media-object">
+ <?= FunctionsEdit::addSimpleTag($tree, $level . ' OBJE') ?>
+ </div>
</div>
diff --git a/resources/views/cards/add-note.php b/resources/views/cards/add-note.php
index 42340ef7c8..37ed5355a6 100644
--- a/resources/views/cards/add-note.php
+++ b/resources/views/cards/add-note.php
@@ -2,13 +2,13 @@
<?php use Fisharebest\Webtrees\I18N; ?>
<div class="card mb-4">
- <div class="card-header">
- <a href="#" data-toggle="collapse" data-target="#add-note" aria-expanded="false" aria-controls="add-note">
- <?= I18N::translate('Add a note') ?>
- </a>
- </div>
+ <div class="card-header">
+ <a href="#" data-toggle="collapse" data-target="#add-note" aria-expanded="false" aria-controls="add-note">
+ <?= I18N::translate('Add a note') ?>
+ </a>
+ </div>
- <div class="card-body collapse" id="add-note">
- <?= FunctionsEdit::addSimpleTag($tree, $level . ' NOTE') ?>
- </div>
+ <div class="card-body collapse" id="add-note">
+ <?= FunctionsEdit::addSimpleTag($tree, $level . ' NOTE') ?>
+ </div>
</div>
diff --git a/resources/views/cards/add-restriction.php b/resources/views/cards/add-restriction.php
index ec71e9dbd6..6f5698212d 100644
--- a/resources/views/cards/add-restriction.php
+++ b/resources/views/cards/add-restriction.php
@@ -2,13 +2,13 @@
<?php use Fisharebest\Webtrees\I18N; ?>
<div class="card mb-4">
- <div class="card-header">
- <a href="#" data-toggle="collapse" data-target="#add-restriction" aria-expanded="false" aria-controls="add-restriction">
- <?= I18N::translate('Add a restriction') ?>
- </a>
- </div>
+ <div class="card-header">
+ <a href="#" data-toggle="collapse" data-target="#add-restriction" aria-expanded="false" aria-controls="add-restriction">
+ <?= I18N::translate('Add a restriction') ?>
+ </a>
+ </div>
- <div class="card-body collapse" id="add-restriction">
- <?= FunctionsEdit::addSimpleTag($tree, $level . ' RESN') ?>
- </div>
+ <div class="card-body collapse" id="add-restriction">
+ <?= FunctionsEdit::addSimpleTag($tree, $level . ' RESN') ?>
+ </div>
</div>
diff --git a/resources/views/cards/add-shared-note.php b/resources/views/cards/add-shared-note.php
index 37a4504aa2..6226183257 100644
--- a/resources/views/cards/add-shared-note.php
+++ b/resources/views/cards/add-shared-note.php
@@ -2,13 +2,13 @@
<?php use Fisharebest\Webtrees\I18N; ?>
<div class="card mb-4">
- <div class="card-header">
- <a href="#" data-toggle="collapse" data-target="#add-note-object" aria-expanded="false" aria-controls="add-note-object">
- <?= I18N::translate('Add a shared note') ?>
- </a>
- </div>
+ <div class="card-header">
+ <a href="#" data-toggle="collapse" data-target="#add-note-object" aria-expanded="false" aria-controls="add-note-object">
+ <?= I18N::translate('Add a shared note') ?>
+ </a>
+ </div>
- <div class="card-body collapse" id="add-note-object">
- <?= FunctionsEdit::addSimpleTag($tree, $level . ' SHARED_NOTE') ?>
- </div>
+ <div class="card-body collapse" id="add-note-object">
+ <?= FunctionsEdit::addSimpleTag($tree, $level . ' SHARED_NOTE') ?>
+ </div>
</div>
diff --git a/resources/views/cards/add-source-citation.php b/resources/views/cards/add-source-citation.php
index cf495345c8..6481f36e47 100644
--- a/resources/views/cards/add-source-citation.php
+++ b/resources/views/cards/add-source-citation.php
@@ -3,77 +3,77 @@
<?php use Fisharebest\Webtrees\I18N; ?>
<div class="card mb-4">
- <div class="card-header">
- <a href="#" data-toggle="collapse" data-target="#add-source-citation" aria-expanded="false" aria-controls="add-source-citation">
- <?= I18N::translate('Add a source citation') ?>
- </a>
- </div>
+ <div class="card-header">
+ <a href="#" data-toggle="collapse" data-target="#add-source-citation" aria-expanded="false" aria-controls="add-source-citation">
+ <?= I18N::translate('Add a source citation') ?>
+ </a>
+ </div>
- <div class="card-body collapse" id="add-source-citation">
- <?= FunctionsEdit::addSimpleTag($tree, $level . ' SOUR @') ?>
+ <div class="card-body collapse" id="add-source-citation">
+ <?= FunctionsEdit::addSimpleTag($tree, $level . ' SOUR @') ?>
- <?php if ($level === 1): ?>
- <div class="row">
- <div class="col-sm-3"></div>
- <div class="col-sm-9">
- <?php if (strpos($bdm, 'B') !== false): ?>
- <label>
- <input type="checkbox" name="SOUR_INDI" <?= $prefer_level2_sources === '2' ? 'checked' : '' ?> value="1">
- <?= I18N::translate('Individual') ?>
- </label>
- <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_facts, $matches)): ?>
- <?php foreach ($matches[1] as $match): ?>
- <?php if (!in_array($match, explode('|', WT_EVENTS_DEAT))): ?>
- <label>
- <input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
- <?= GedcomTag::getLabel($match) ?>
- </label>
- <?php endif ?>
- <?php endforeach ?>
- <?php endif ?>
- <?php endif ?>
+ <?php if ($level === 1) : ?>
+ <div class="row">
+ <div class="col-sm-3"></div>
+ <div class="col-sm-9">
+ <?php if (strpos($bdm, 'B') !== false) : ?>
+ <label>
+ <input type="checkbox" name="SOUR_INDI" <?= $prefer_level2_sources === '2' ? 'checked' : '' ?> value="1">
+ <?= I18N::translate('Individual') ?>
+ </label>
+ <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_facts, $matches)) : ?>
+ <?php foreach ($matches[1] as $match) : ?>
+ <?php if (!in_array($match, explode('|', WT_EVENTS_DEAT))) : ?>
+ <label>
+ <input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
+ <?= GedcomTag::getLabel($match) ?>
+ </label>
+ <?php endif ?>
+ <?php endforeach ?>
+ <?php endif ?>
+ <?php endif ?>
- <?php if (strpos($bdm, 'D') !== false): ?>
- <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_facts, $matches)): ?>
- <?php foreach ($matches[1] as $match): ?>
- <?php if (in_array($match, explode('|', WT_EVENTS_DEAT))): ?>
- <label>
- <input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
- <?= GedcomTag::getLabel($match) ?>
- </label>
- <?php endif ?>
- <?php endforeach ?>
- <?php endif ?>
- <?php endif ?>
+ <?php if (strpos($bdm, 'D') !== false) : ?>
+ <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_facts, $matches)) : ?>
+ <?php foreach ($matches[1] as $match) : ?>
+ <?php if (in_array($match, explode('|', WT_EVENTS_DEAT))) : ?>
+ <label>
+ <input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
+ <?= GedcomTag::getLabel($match) ?>
+ </label>
+ <?php endif ?>
+ <?php endforeach ?>
+ <?php endif ?>
+ <?php endif ?>
- <?php if (strpos($bdm, 'M') !== false): ?>
- <label>
- <input type="checkbox" name="SOUR_FAM" <?= $prefer_level2_sources === '2' ? 'checked' : '' ?> value="1">
- <?= I18N::translate('Family') ?>
- </label>
- <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_famfacts, $matches)): ?>
- <?php foreach ($matches[1] as $match): ?>
- <label>
- <input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
- <?= GedcomTag::getLabel($match) ?>
- </label>
- <?php endforeach ?>
- <?php endif ?>
- <?php endif ?>
- </div>
- </div>
- <?php endif ?>
+ <?php if (strpos($bdm, 'M') !== false) : ?>
+ <label>
+ <input type="checkbox" name="SOUR_FAM" <?= $prefer_level2_sources === '2' ? 'checked' : '' ?> value="1">
+ <?= I18N::translate('Family') ?>
+ </label>
+ <?php if (preg_match_all('/(' . WT_REGEX_TAG . ')/', $quick_required_famfacts, $matches)) : ?>
+ <?php foreach ($matches[1] as $match) : ?>
+ <label>
+ <input type="checkbox" name="SOUR_<?= $match ?>" <?= $prefer_level2_sources === '1' ? 'checked' : '' ?> value="1">
+ <?= GedcomTag::getLabel($match) ?>
+ </label>
+ <?php endforeach ?>
+ <?php endif ?>
+ <?php endif ?>
+ </div>
+ </div>
+ <?php endif ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' PAGE') ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' DATA') ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 2) . ' TEXT') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' PAGE') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' DATA') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 2) . ' TEXT') ?>
- <?php if ($full_citations): ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 2) . ' DATE', '', I18N::translate('Date of entry in original source')) ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' QUAY') ?>
- <?php endif ?>
+ <?php if ($full_citations) : ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 2) . ' DATE', '', I18N::translate('Date of entry in original source')) ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' QUAY') ?>
+ <?php endif ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' OBJE') ?>
- <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' SHARED_NOTE') ?>
- </div>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' OBJE') ?>
+ <?= FunctionsEdit::addSimpleTag($tree, ($level + 1) . ' SHARED_NOTE') ?>
+ </div>
</div>