Browse Source

Bug 28042: Button corrections in OAI set mappings template

This patch makes minor markup changes in the OAI set mappings template
so that the "Add" button looks consistent with other buttons in the
table.

Also changed: Removed unnecessary inline style attributes.

To test, apply the patch and go to Administration -> OAI sets
configuration

- If necessary, create an OAI set.
- Click the "Actions" button and choose "Define mappings."
- In the table of form fields, confirm that the "Add" button is styled
  similarly to the "Delete" button.
- Confirm that the "Add" button works as expected.

Signed-off-by: Amit Gupta <amitddng135@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Owen Leonard 2 years ago
committed by Jonathan Druart
parent
commit
0053cc6c3e
  1. 12
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt

12
koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt

@ -59,7 +59,7 @@
</select>
</td>
<td><input type="text" name="marcfield" size="3" value="[% mapping.marcfield | html %]" /></td>
<td style="text-align:center"><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield | html %]" /></td>
<td><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield | html %]" /></td>
<td><select name=operator>
[% IF mapping.operator == 'equal' %]
<option value="equal" selected="selected">is equal to</option>
@ -70,9 +70,9 @@
[% END %]
</select></td>
<td><input type="text" name="marcvalue" value="[% mapping.marcvalue | html %]" /></td>
<td style="text-align:center">
<td>
[% IF ( loop.last ) %]
<input type="button" id="new_rule_button" value="add" title="Add another condition" />
<button type="button" id="new_rule_button" class="btn btn-default btn-xs" title="Add another condition"><i class="fa fa-plus"></i> Add</button>
[% END %]
</td>
<td><button class="btn btn-default btn-xs clear-field" type="button"><i class="fa fa-trash"></i> Delete</button></td>
@ -95,13 +95,15 @@
</select>
</td>
<td><input type="text" name="marcfield" size="3" /></td>
<td style="text-align:center"><input type="text" name="marcsubfield" size="1" /></td>
<td><input type="text" name="marcsubfield" size="1" /></td>
<td><select name=operator>
<option value="equal">is equal to</option>
<option value="notequal">not equal to</option>
</select></td>
<td><input type="text" name="marcvalue" /></td>
<td><input type="button" id="new_rule_button" value="Add" /></td>
<td>
<button type="button" id="new_rule_button" class="btn btn-default btn-xs" title="Add another condition"><i class="fa fa-plus"></i> Add</button>
</td>
<td><button class="btn btn-default btn-xs clear-field" type="button"><i class="fa fa-trash"></i> Delete</button></td>
</tr>
[% END %]

Loading…
Cancel
Save