Skip to content

Commit

Permalink
Merge pull request Islandora#180 from willtp87/7.x.default_transform_fix
Browse files Browse the repository at this point in the history
Inverse logic for hiding transform form elements.
  • Loading branch information
whikloj committed Mar 27, 2015
2 parents 9cb50c3 + 0d62d0e commit daf4cc8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions builder/templates/xml-form-builder-association-table.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
<th><?php print t('Type'); ?></th>
<th><?php print t('Datastream ID'); ?></th>
<th><?php print t('Label field'); ?></th>
<th><?php print t('Transform'); ?></th>
<th><?php print t('Self Transform'); ?></th>

<?php if (!$use_default_transforms): ?>
<th><?php print t('Transform'); ?></th>
<th><?php print t('Self Transform'); ?></th>
<?php endif; ?>

<th><?php print t('Has template'); ?></th>
<th><?php print t('Operations'); ?></th>
</tr>
Expand All @@ -23,8 +27,12 @@
<td><?php print ($association['type'] == 'hook') ? t('Built-in') : t('Custom') ?></td>
<td><?php print $association['dsid'] ?></td>
<td><?php print $association['title_field'] ?></td>
<td><?php print $association['transform'] ?></td>
<td><?php print (isset($association['self_transform'])) ? $association['self_transform'] : t("No Self Transform") ?></td>

<?php if (!$use_default_transforms): ?>
<td><?php print $association['transform'] ?></td>
<td><?php print (isset($association['self_transform'])) ? $association['self_transform'] : t("No Self Transform") ?></td>
<?php endif; ?>

<td><?php print ($association['template']) ? t('Yes') : t('No') ?></td>
<td>
<?php if ($association['type'] == 'hook'): ?>
Expand Down

0 comments on commit daf4cc8

Please sign in to comment.