Bug 10402 [Template follow-up] Add multiple contacts for vendors
This template-only follow-up tweaks the button labels and restructures the vendor view layout a little bit to make it more amenable to multiple contacts: - Add spaces after button icons - Change "Add contact" to "Add another contact" in hopes of making it less ambiguous whether clicking it will submit the whole form. - Eliminate duplicate headers on the vendor view page by making the contact name the subheading for each individual contact. To test, view details for vendors with one or more contacts, and try editing to add additional contacts. Everything should look good and work correctly. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Paola Rossi <paola.rossi@cineca.it> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
b971273a10
commit
3b3656aa9d
1 changed files with 41 additions and 35 deletions
|
@ -19,8 +19,9 @@
|
|||
[% IF contact.id %]<li><button class="btn" class="delete-contact"><i class="icon-remove"></i> Delete contact</li>[% END %]
|
||||
</ol>
|
||||
[% END %]
|
||||
|
||||
[% BLOCK show_contact %]
|
||||
<p><span class="label">Contact name: </span>[% contact.name %]</p>
|
||||
<h3>[% contact.name %]</h3>
|
||||
<p><span class="label">Position: </span>[% contact.position %]</p>
|
||||
<p><span class="label">Phone: </span>[% contact.phone %]</p>
|
||||
<p><span class="label">Alternative phone: </span>[% contact.altphone %]</p>
|
||||
|
@ -32,6 +33,7 @@
|
|||
<p><span class="label">Notes: </span>[% contact.notes %]</p>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title>Koha › Vendor [% bookselname %]</title>
|
||||
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
|
||||
|
@ -132,7 +134,7 @@ function delete_contact() {
|
|||
[% INCLUDE edit_contact %]
|
||||
</fieldset>
|
||||
[% END %]
|
||||
<button id="add-contact" class="btn"><i class="icon-plus"></i>Add contact</button>
|
||||
<button id="add-contact" class="btn"><i class="icon-plus"></i> Add another contact</button>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="yui-g">
|
||||
|
@ -242,16 +244,9 @@ function delete_contact() {
|
|||
[% IF ( accountnumber ) %]
|
||||
<p><span class="label">Account number: </span>[% accountnumber %]</p>
|
||||
[% END %]
|
||||
</div>
|
||||
[% FOREACH contact IN contacts %]
|
||||
<div class="supplier-contact-details yui-u">
|
||||
<h2>Contact details</h2>
|
||||
[% INCLUDE show_contact %]
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
<div id="supplier-ordering-information" class="yui-g">
|
||||
<h3>Ordering information</h3>
|
||||
|
||||
<div id="supplier-ordering-information">
|
||||
<h2>Ordering information</h2>
|
||||
<p><strong>Vendor is: </strong>
|
||||
[% IF ( active ) %]
|
||||
Active
|
||||
|
@ -277,6 +272,17 @@ function delete_contact() {
|
|||
[% IF ( notes ) %]<p><strong>Notes: </strong>
|
||||
[% notes %]</p>[% END %]
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="supplier-contact-details yui-u">
|
||||
<h2>Contact</h2>
|
||||
[% FOREACH contact IN contacts %]
|
||||
[% INCLUDE show_contact %]
|
||||
[% END %]
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
[% IF ( contracts ) %]
|
||||
<div id="supplier-contracts" class="yui-g">
|
||||
<h2>Contract(s)</h2>
|
||||
|
|
Loading…
Reference in a new issue