Skip to content

Commit

Permalink
Re-add ids and replace remaining styles
Browse files Browse the repository at this point in the history
  • Loading branch information
FitiaHarena committed Sep 29, 2023
1 parent 29cbf8e commit 2b7b4e3
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ class="collapse<?php echo 0 < count($alternativeIdentifierData) ? ' show' : '';
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<th class="w-30">
<th id="alt-identifiers-type-head" class="w-30">
<?php echo __('Type'); ?>
</th>
<th class="w-35">
<th id="alt-identifiers-identifier-head" class="w-35">
<?php echo __('Identifier'); ?>
</th>
<th class="w-35">
<th id="alt-identifiers-note-head" class="w-35">
<?php echo __('Notes'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#accession-events-type-head { width: 20% }
#accession-events-date-head { width: 25% }
</style>
<th id="accession-events-type-head">
<th id="accession-events-type-head" class="w-20">
<?php echo __('Type'); ?>
</th>
<th id="accession-events-date-head">
<th id="accession-events-date-head" class="w-25">
<?php echo __('Date'); ?>
</th>
<th id="accession-events-agent-head">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ class="atom-table-modal"
<table class="table table-bordered mb-0">
<thead class="table-light">
<tr>
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#related-donor-name-head { width: 100% }
</style>
<th id="related-donor-name-head">
<th class="w-100">
<?php echo __('Name'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,17 @@
<?php foreach ($pager->getResults() as $hit) { ?>
<?php $doc = $hit->getData(); ?>
<tr>
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#browse-results-identifier, #browse-results-date, #browse-results-updated-at { width: 20% }
</style>
<td id="browse-results-identifier">
<td class="w-20">
<?php echo link_to($doc['identifier'], ['module' => 'accession', 'slug' => $doc['slug']]); ?>
</td>
<td>
<?php echo link_to(render_title(get_search_i18n($doc, 'title')), ['module' => 'accession', 'slug' => $doc['slug']]); ?>
</td>
<td id="browse-results-date">
<td class="w-20">
<?php echo format_date($doc['date'], 'i'); ?>
</td>
<?php if ('lastUpdated' == $sf_request->sort) { ?>
<td id="browse-results-updated-at>
<td class="w-20">
<?php echo format_date($doc['updatedAt'], 'f'); ?>
</td>
<?php } ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<th class="w-50">
<th id="occupations-occupation-head" class="w-50">
<?php echo __('Occupation'); ?>
</th>
<th class="w-50">
<th id="occupations-content-head" class="w-50">
<?php echo __('Note'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#child-identifier-head, #child-level-head, #child-date-head { width: 20% }
#child-title-head { width: 40% }
</style>
<th id="child-identifier-head">
<th id="child-identifier-head" class="w-20">
<?php echo __('Identifier'); ?>
</th>
<th id="child-level-head">
<th id="child-level-head" class="w-20">
<?php echo __('Level'); ?>
</th>
<th id="child-title-head">
<th id="child-title-head" class="w-40">
<?php echo __('Title'); ?>
</th>
<th id="child-date-head">
<th id="child-date-head" class="w-20">
<?php echo __('Date'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,10 @@ class="collapse<?php echo 0 < count($alternativeIdentifiers) ? ' show' : ''; ?>"
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#alt-identifiers-label-head, #alt-identifiers-identifier-head { width: 50% }
</style>
<th id="alt-identifiers-label-head">
<th id="alt-identifiers-label-head" class="w-50">
<?php echo __('Label'); ?>
</th>
<th id="alt-identifiers-identifier-head">
<th id="alt-identifiers-identifier-head" class="w-50">
<?php echo __('Identifier'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,10 @@
data-multifileupload-i18n-no-successful-files-error="<?php echo __('Files not uploaded successfully. Please retry.'); ?>"
data-multifileupload-i18n-post-size-error="<?php echo __('Upload limit of %{maxPostSize} MB reached. Unable to add additional files.'); ?>"
data-multifileupload-i18n-alert-close="<?php echo __('Close'); ?>">
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#multiFileUploadForm { display: inline }
</style>

<?php echo $form->renderGlobalErrors(); ?>

<?php echo $form->renderFormTag(url_for([$resource, 'module' => 'informationobject', 'action' => 'multiFileUpload']), ['id' => 'multiFileUploadForm']); ?>
<?php echo $form->renderFormTag(url_for([$resource, 'module' => 'informationobject', 'action' => 'multiFileUpload']), ['id' => 'multiFileUploadForm','class' => 'd-inline']); ?>

<?php echo $form->renderHiddenFields(); ?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<th class="w-40">
<th id="dc-dates-date-head" class="w-40">
<?php echo __('Date'); ?>
</th>
<th class="w-30">
<th id="dc-dates-start-head" class="w-30">
<?php echo __('Start'); ?>
</th>
<th class="w-30">
<th id="dc-dates-end-head" class="w-30">
<?php echo __('End'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<th class="w-60">
<th id="dc-names-actor-head" class="w-60">
<?php echo __('Actor name'); ?>
</th>
<th class="w-40">
<th id="dc-names-type-head" class="w-40">
<?php echo __('Type'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<th class="w-20">
<th id="child-identifier-head" class="w-20">
<?php echo __('Identifier'); ?>
</th>
<th class="w-80">
<th id="child-title-head" class="w-80">
<?php echo __('Title'); ?>
</th>
<th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<style <?php echo __(sfConfig::get('csp_nonce', '')); ?>>
#isad-events-type-head { width: 25% }
#isad-events-date-head { width: 30% }
</style>
<th id="isad-events-type-head">
<th id="isad-events-type-head" class="w-25">
<?php echo __('Type'); ?>
</th>
<th id="isad-events-date-head">
<th id="isad-events-date-head" class="w-30">
<?php echo __('Date'); ?>
</th>
<th id="isad-events-start-head">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@
<table class="table table-bordered mb-0 multi-row">
<thead class="table-light">
<tr>
<th class="w-20">
<th id="child-identifier-head" class="w-20">
<?php echo __('Identifier'); ?>
</th>
<th class="w-80">
<th id="child-title-head" class="w-80">
<?php echo __('Title'); ?>
</th>
<th>
Expand Down

0 comments on commit 2b7b4e3

Please sign in to comment.