/connedit do not show vcard and section selector if not yet approved. whitespace cleanup

This commit is contained in:
Mario Vavti 2017-01-10 10:15:48 +01:00
parent 47bc573de5
commit 0f89db3b46

View File

@ -21,7 +21,7 @@
{{if $abook_prev || $abook_next}}
<div class="btn-group">
<a href="connedit/{{$abook_prev}}{{if $section}}?f=&section={{$section}}{{/if}}" class="btn btn-default btn-xs{{if ! $abook_prev}} disabled{{/if}}" ><i class="fa fa-backward"></i></a>
<button class="btn btn-default btn-xs" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-bars"></i></button>
<button class="btn btn-default btn-xs{{if $is_pending}} disabled{{/if}}" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-bars"></i></button>
<a href="connedit/{{$abook_next}}{{if $section}}?f=&section={{$section}}{{/if}}" class="btn btn-default btn-xs{{if ! $abook_next}} disabled{{/if}}" ><i class="fa fa-forward"></i></a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
{{foreach $sections as $s}}
@ -89,24 +89,22 @@
</div>
</div>
{{/if}}
<div class="panel">
<div id="template-form-vcard-org" class="form-group form-vcard-org">
{{if ! $is_pending}}
<div id="template-form-vcard-org" class="form-group form-vcard-org">
<div class="form-group form-vcard-org">
<input type="text" name="org" value="" placeholder="{{$org_label}}">
<i data-remove="vcard-org" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
</div>
</div>
</div>
<div id="template-form-vcard-title" class="form-group form-vcard-title">
<div id="template-form-vcard-title" class="form-group form-vcard-title">
<div class="form-group form-vcard-title">
<input type="text" name="title" value="" placeholder="{{$title_label}}">
<i data-remove="vcard-title" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
</div>
</div>
</div>
<div id="template-form-vcard-tel" class="form-group form-vcard-tel">
<div id="template-form-vcard-tel" class="form-group form-vcard-tel">
<select name="tel_type[]">
<option value="CELL">{{$mobile}}</option>
<option value="HOME">{{$home}}</option>
@ -115,9 +113,9 @@
</select>
<input type="text" name="tel[]" value="" placeholder="{{$tel_label}}">
<i data-remove="vcard-tel" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
</div>
</div>
<div id="template-form-vcard-email" class="form-group form-vcard-email">
<div id="template-form-vcard-email" class="form-group form-vcard-email">
<select name="email_type[]">
<option value="HOME">{{$home}}</option>
<option value="WORK">{{$work}}</option>
@ -125,9 +123,9 @@
</select>
<input type="text" name="email[]" value="" placeholder="{{$email_label}}">
<i data-remove="vcard-email" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
</div>
</div>
<div id="template-form-vcard-impp" class="form-group form-vcard-impp">
<div id="template-form-vcard-impp" class="form-group form-vcard-impp">
<select name="impp_type[]">
<option value="HOME">{{$home}}</option>
<option value="WORK">{{$work}}</option>
@ -135,9 +133,9 @@
</select>
<input type="text" name="impp[]" value="" placeholder="{{$impp_label}}">
<i data-remove="vcard-impp" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
</div>
</div>
<div id="template-form-vcard-url" class="form-group form-vcard-url">
<div id="template-form-vcard-url" class="form-group form-vcard-url">
<select name="url_type[]">
<option value="HOME">{{$home}}</option>
<option value="WORK">{{$work}}</option>
@ -145,9 +143,9 @@
</select>
<input type="text" name="url[]" value="" placeholder="{{$url_label}}">
<i data-remove="vcard-url" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
</div>
</div>
<div id="template-form-vcard-adr" class="form-group form-vcard-adr">
<div id="template-form-vcard-adr" class="form-group form-vcard-adr">
<div class="form-group">
<select name="adr_type[]">
<option value="HOME">{{$home}}</option>
@ -178,14 +176,13 @@
<div class="form-group">
<input type="text" name="" value="" placeholder="{{$country}}">
</div>
</div>
</div>
<div id="template-form-vcard-note" class="form-group form-vcard-note">
<div id="template-form-vcard-note" class="form-group form-vcard-note">
<label>{{$note_label}}</label>
<i data-remove="vcard-note" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
<textarea name="note" class="form-control"></textarea>
</div>
</div>
<div class="section-content-wrapper-np">
<div id="vcard-cancel-{{$vcard.id}}" class="vcard-cancel vcard-cancel-btn" data-id="{{$vcard.id}}" data-action="cancel"><i class="fa fa-close"></i></div>
@ -203,6 +200,7 @@
</ul>
</div>
<div id="vcard-header-{{$vcard.id}}" class="vcard-header" data-id="{{$vcard.id}}" data-action="open">
<i class="vcard-fn-preview fa fa-address-card-o"></i>
<span id="vcard-preview-{{$vcard.id}}" class="vcard-preview">
{{if $vcard.fn}}<span class="vcard-fn-preview">{{$vcard.fn}}</span>{{/if}}
{{if $vcard.emails.0.address}}<span class="vcard-email-preview hidden-xs"><a href="mailto:{{$vcard.emails.0.address}}">{{$vcard.emails.0.address}}</a></span>{{/if}}
@ -372,20 +370,14 @@
</div>
</div>
{{/if}}
{{if $affinity }}
{{if $affinity}}
<div class="panel">
<div class="section-subtitle-wrapper" role="tab" id="affinity-tool">
<h3>
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#affinity-tool-collapse" aria-expanded="true" aria-controls="affinity-tool-collapse">
{{$affinity }}
{{$affinity}}
</a>
</h3>
</div>
@ -397,7 +389,7 @@
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
{{/if}}
{{if $multiprofs }}
{{if $multiprofs}}
<div class="form-group">
<strong>{{$lbl_vis2}}</strong>
{{$profile_select}}