/connedit do not show vcard and section selector if not yet approved. whitespace cleanup
This commit is contained in:
parent
47bc573de5
commit
0f89db3b46
@ -21,7 +21,7 @@
|
|||||||
{{if $abook_prev || $abook_next}}
|
{{if $abook_prev || $abook_next}}
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a href="connedit/{{$abook_prev}}{{if $section}}?f=§ion={{$section}}{{/if}}" class="btn btn-default btn-xs{{if ! $abook_prev}} disabled{{/if}}" ><i class="fa fa-backward"></i></a>
|
<a href="connedit/{{$abook_prev}}{{if $section}}?f=§ion={{$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=§ion={{$section}}{{/if}}" class="btn btn-default btn-xs{{if ! $abook_next}} disabled{{/if}}" ><i class="fa fa-forward"></i></a>
|
<a href="connedit/{{$abook_next}}{{if $section}}?f=§ion={{$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">
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dLabel">
|
||||||
{{foreach $sections as $s}}
|
{{foreach $sections as $s}}
|
||||||
@ -89,303 +89,295 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="panel">
|
{{if ! $is_pending}}
|
||||||
|
<div id="template-form-vcard-org" class="form-group form-vcard-org">
|
||||||
|
<div class="form-group form-vcard-org">
|
||||||
<div id="template-form-vcard-org" class="form-group form-vcard-org">
|
<input type="text" name="org" value="" placeholder="{{$org_label}}">
|
||||||
<div class="form-group form-vcard-org">
|
<i data-remove="vcard-org" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
<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 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 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>
|
|
||||||
<option value="WORK">{{$work}}</option>
|
|
||||||
<option value="OTHER">{{$other}}</option>
|
|
||||||
</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 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>
|
|
||||||
<option value="OTHER">{{$other}}</option>
|
|
||||||
</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 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>
|
|
||||||
<option value="OTHER">{{$other}}</option>
|
|
||||||
</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 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>
|
|
||||||
<option value="OTHER">{{$other}}</option>
|
|
||||||
</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 id="template-form-vcard-adr" class="form-group form-vcard-adr">
|
|
||||||
<div class="form-group">
|
|
||||||
<select name="adr_type[]">
|
|
||||||
<option value="HOME">{{$home}}</option>
|
|
||||||
<option value="WORK">{{$work}}</option>
|
|
||||||
<option value="OTHER">{{$other}}</option>
|
|
||||||
</select>
|
|
||||||
<label>{{$adr_label}}</label>
|
|
||||||
<i data-remove="vcard-adr" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$po_box}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$extra}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$street}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$locality}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$region}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$zip_code}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="" value="" placeholder="{{$country}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<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 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>
|
|
||||||
<div id="vcard-add-field-{{$vcard.id}}" class="dropdown pull-right vcard-add-field">
|
|
||||||
<button data-toggle="dropdown" type="button" class="btn btn-default btn-sm dropdown-toggle"><i class="fa fa-plus"></i> {{$add_field}}</button>
|
|
||||||
<ul class="dropdown-menu">
|
|
||||||
<li class="add-vcard-org"{{if $vcard.org}} style="display: none"{{/if}}><a href="#" data-add="vcard-org" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$org_label}}</a></li>
|
|
||||||
<li class="add-vcard-title"{{if $vcard.title}} style="display: none"{{/if}}><a href="#" data-add="vcard-title" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$title_label}}</a></li>
|
|
||||||
<li class="add-vcard-tel"><a href="#" data-add="vcard-tel" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$tel_label}}</a></li>
|
|
||||||
<li class="add-vcard-email"><a href="#" data-add="vcard-email" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$email_label}}</a></li>
|
|
||||||
<li class="add-vcard-impp"><a href="#" data-add="vcard-impp" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$impp_label}}</a></li>
|
|
||||||
<li class="add-vcard-url"><a href="#" data-add="vcard-url" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$url_label}}</a></li>
|
|
||||||
<li class="add-vcard-adr"><a href="#" data-add="vcard-adr" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$adr_label}}</a></li>
|
|
||||||
<li class="add-vcard-note"{{if $vcard.note}} style="display: none"{{/if}}><a href="#" data-add="vcard-note" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$note_label}}</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="vcard-header-{{$vcard.id}}" class="vcard-header" data-id="{{$vcard.id}}" data-action="open">
|
|
||||||
<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}}
|
|
||||||
{{if $vcard.tels.0}}<span class="vcard-tel-preview hidden-xs">{{$vcard.tels.0.nr}}{{if $is_mobile}} <a class="btn btn-default btn-xs" href="tel:{{$vcard.tels.0.nr}}"><i class="fa fa-phone connphone"></i></a>{{/if}}</span>{{/if}}
|
|
||||||
</span>
|
|
||||||
<input id="vcard-fn-{{$vcard.id}}" class="vcard-fn" type="text" name="fn" value="{{$vcard.fn}}" size="{{$vcard.fn|count_characters:true}}" placeholder="{{$name_label}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="vcard-info-{{$vcard.id}}" class="vcard-info section-content-wrapper">
|
|
||||||
|
|
||||||
<div class="vcard-org form-group">
|
|
||||||
<div class="form-vcard-org-wrapper">
|
|
||||||
{{if $vcard.org}}
|
|
||||||
<div class="form-group form-vcard-org">
|
|
||||||
<input type="text" name="org" value="{{$vcard.org}}" size="{{$vcard.org|count_characters:true}}" placeholder="{{$org_label}}">
|
|
||||||
<i data-remove="vcard-org" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="vcard-title form-group">
|
<div id="template-form-vcard-title" class="form-group form-vcard-title">
|
||||||
<div class="form-vcard-title-wrapper">
|
<div class="form-group form-vcard-title">
|
||||||
{{if $vcard.title}}
|
<input type="text" name="title" value="" placeholder="{{$title_label}}">
|
||||||
<div class="form-group form-vcard-title">
|
<i data-remove="vcard-title" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
<input type="text" name="title" value="{{$vcard.title}}" size="{{$vcard.title|count_characters:true}}" placeholder="{{$title_label}}">
|
|
||||||
<i data-remove="vcard-title" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<option value="WORK">{{$work}}</option>
|
||||||
|
<option value="OTHER">{{$other}}</option>
|
||||||
|
</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 class="vcard-tel form-group">
|
<div id="template-form-vcard-email" class="form-group form-vcard-email">
|
||||||
<div class="form-vcard-tel-wrapper">
|
<select name="email_type[]">
|
||||||
{{if $vcard.tels}}
|
<option value="HOME">{{$home}}</option>
|
||||||
{{foreach $vcard.tels as $tel}}
|
<option value="WORK">{{$work}}</option>
|
||||||
<div class="form-group form-vcard-tel">
|
<option value="OTHER">{{$other}}</option>
|
||||||
<select name="tel_type[]">
|
</select>
|
||||||
<option value=""{{if $tel.type.0 != 'CELL' && $tel.type.0 != 'HOME' && $tel.type.0 != 'WORK' && $tel.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$tel.type.1}}</option>
|
<input type="text" name="email[]" value="" placeholder="{{$email_label}}">
|
||||||
<option value="CELL"{{if $tel.type.0 == 'CELL'}} selected="selected"{{/if}}>{{$mobile}}</option>
|
<i data-remove="vcard-email" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
<option value="HOME"{{if $tel.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
</div>
|
||||||
<option value="WORK"{{if $tel.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
|
||||||
<option value="OTHER"{{if $tel.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
<div id="template-form-vcard-impp" class="form-group form-vcard-impp">
|
||||||
</select>
|
<select name="impp_type[]">
|
||||||
<input type="text" name="tel[]" value="{{$tel.nr}}" size="{{$tel.nr|count_characters:true}}" placeholder="{{$tel_label}}">
|
<option value="HOME">{{$home}}</option>
|
||||||
<i data-remove="vcard-tel" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
<option value="WORK">{{$work}}</option>
|
||||||
</div>
|
<option value="OTHER">{{$other}}</option>
|
||||||
{{/foreach}}
|
</select>
|
||||||
{{/if}}
|
<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 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>
|
||||||
|
<option value="OTHER">{{$other}}</option>
|
||||||
|
</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 id="template-form-vcard-adr" class="form-group form-vcard-adr">
|
||||||
|
<div class="form-group">
|
||||||
|
<select name="adr_type[]">
|
||||||
|
<option value="HOME">{{$home}}</option>
|
||||||
|
<option value="WORK">{{$work}}</option>
|
||||||
|
<option value="OTHER">{{$other}}</option>
|
||||||
|
</select>
|
||||||
|
<label>{{$adr_label}}</label>
|
||||||
|
<i data-remove="vcard-adr" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$po_box}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$extra}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$street}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$locality}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$region}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$zip_code}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="" value="" placeholder="{{$country}}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="template-form-vcard-note" class="form-group form-vcard-note">
|
||||||
<div class="vcard-email form-group">
|
<label>{{$note_label}}</label>
|
||||||
<div class="form-vcard-email-wrapper">
|
<i data-remove="vcard-note" data-id="" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
{{if $vcard.emails}}
|
<textarea name="note" class="form-control"></textarea>
|
||||||
{{foreach $vcard.emails as $email}}
|
|
||||||
<div class="form-group form-vcard-email">
|
|
||||||
<select name="email_type[]">
|
|
||||||
<option value=""{{if $email.type.0 != 'HOME' && $email.type.0 != 'WORK' && $email.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$email.type.1}}</option>
|
|
||||||
<option value="HOME"{{if $email.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
|
||||||
<option value="WORK"{{if $email.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
|
||||||
<option value="OTHER"{{if $email.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
|
||||||
</select>
|
|
||||||
<input type="text" name="email[]" value="{{$email.address}}" size="{{$email.address|count_characters:true}}" placeholder="{{$email_label}}">
|
|
||||||
<i data-remove="vcard-email" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
|
||||||
</div>
|
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="vcard-impp form-group">
|
<div class="section-content-wrapper-np">
|
||||||
<div class="form-vcard-impp-wrapper">
|
<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>
|
||||||
{{if $vcard.impps}}
|
<div id="vcard-add-field-{{$vcard.id}}" class="dropdown pull-right vcard-add-field">
|
||||||
{{foreach $vcard.impps as $impp}}
|
<button data-toggle="dropdown" type="button" class="btn btn-default btn-sm dropdown-toggle"><i class="fa fa-plus"></i> {{$add_field}}</button>
|
||||||
<div class="form-group form-vcard-impp">
|
<ul class="dropdown-menu">
|
||||||
<select name="impp_type[]">
|
<li class="add-vcard-org"{{if $vcard.org}} style="display: none"{{/if}}><a href="#" data-add="vcard-org" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$org_label}}</a></li>
|
||||||
<option value=""{{if $impp.type.0 != 'HOME' && $impp.type.0 != 'WORK' && $impp.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$impp.type.1}}</option>
|
<li class="add-vcard-title"{{if $vcard.title}} style="display: none"{{/if}}><a href="#" data-add="vcard-title" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$title_label}}</a></li>
|
||||||
<option value="HOME"{{if $impp.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
<li class="add-vcard-tel"><a href="#" data-add="vcard-tel" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$tel_label}}</a></li>
|
||||||
<option value="WORK"{{if $impp.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
<li class="add-vcard-email"><a href="#" data-add="vcard-email" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$email_label}}</a></li>
|
||||||
<option value="OTHER"{{if $impp.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
<li class="add-vcard-impp"><a href="#" data-add="vcard-impp" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$impp_label}}</a></li>
|
||||||
</select>
|
<li class="add-vcard-url"><a href="#" data-add="vcard-url" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$url_label}}</a></li>
|
||||||
<input type="text" name="impp[]" value="{{$impp.address}}" size="{{$impp.address|count_characters:true}}" placeholder="{{$impp_label}}">
|
<li class="add-vcard-adr"><a href="#" data-add="vcard-adr" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$adr_label}}</a></li>
|
||||||
<i data-remove="vcard-impp" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
<li class="add-vcard-note"{{if $vcard.note}} style="display: none"{{/if}}><a href="#" data-add="vcard-note" data-id="{{$vcard.id}}" class="add-field" onclick="return false;">{{$note_label}}</a></li>
|
||||||
</div>
|
</ul>
|
||||||
{{/foreach}}
|
</div>
|
||||||
{{/if}}
|
<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}}
|
||||||
|
{{if $vcard.tels.0}}<span class="vcard-tel-preview hidden-xs">{{$vcard.tels.0.nr}}{{if $is_mobile}} <a class="btn btn-default btn-xs" href="tel:{{$vcard.tels.0.nr}}"><i class="fa fa-phone connphone"></i></a>{{/if}}</span>{{/if}}
|
||||||
|
</span>
|
||||||
|
<input id="vcard-fn-{{$vcard.id}}" class="vcard-fn" type="text" name="fn" value="{{$vcard.fn}}" size="{{$vcard.fn|count_characters:true}}" placeholder="{{$name_label}}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="vcard-info-{{$vcard.id}}" class="vcard-info section-content-wrapper">
|
||||||
|
|
||||||
<div class="vcard-url form-group">
|
<div class="vcard-org form-group">
|
||||||
<div class="form-vcard-url-wrapper">
|
<div class="form-vcard-org-wrapper">
|
||||||
{{if $vcard.urls}}
|
{{if $vcard.org}}
|
||||||
{{foreach $vcard.urls as $url}}
|
<div class="form-group form-vcard-org">
|
||||||
<div class="form-group form-vcard-url">
|
<input type="text" name="org" value="{{$vcard.org}}" size="{{$vcard.org|count_characters:true}}" placeholder="{{$org_label}}">
|
||||||
<select name="url_type[]">
|
<i data-remove="vcard-org" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
<option value=""{{if $url.type.0 != 'HOME' && $url.type.0 != 'WORK' && $url.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$url.type.1}}</option>
|
</div>
|
||||||
<option value="HOME"{{if $url.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
{{/if}}
|
||||||
<option value="WORK"{{if $url.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
|
||||||
<option value="OTHER"{{if $url.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
|
||||||
</select>
|
|
||||||
<input type="text" name="url[]" value="{{$url.address}}" size="{{$url.address|count_characters:true}}" placeholder="{{$url_label}}">
|
|
||||||
<i data-remove="vcard-url" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
|
||||||
</div>
|
</div>
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="vcard-adr form-group">
|
<div class="vcard-title form-group">
|
||||||
<div class="form-vcard-adr-wrapper">
|
<div class="form-vcard-title-wrapper">
|
||||||
{{if $vcard.adrs}}
|
{{if $vcard.title}}
|
||||||
{{foreach $vcard.adrs as $adr}}
|
<div class="form-group form-vcard-title">
|
||||||
<div class="form-group form-vcard-adr">
|
<input type="text" name="title" value="{{$vcard.title}}" size="{{$vcard.title|count_characters:true}}" placeholder="{{$title_label}}">
|
||||||
<div class="form-group">
|
<i data-remove="vcard-title" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
<label>{{$adr_label}}</label>
|
</div>
|
||||||
<select name="adr_type[]">
|
{{/if}}
|
||||||
<option value=""{{if $adr.type.0 != 'HOME' && $adr.type.0 != 'WORK' && $adr.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$adr.type.1}}</option>
|
</div>
|
||||||
<option value="HOME"{{if $adr.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
</div>
|
||||||
<option value="WORK"{{if $adr.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
|
||||||
<option value="OTHER"{{if $adr.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
|
||||||
|
<div class="vcard-tel form-group">
|
||||||
|
<div class="form-vcard-tel-wrapper">
|
||||||
|
{{if $vcard.tels}}
|
||||||
|
{{foreach $vcard.tels as $tel}}
|
||||||
|
<div class="form-group form-vcard-tel">
|
||||||
|
<select name="tel_type[]">
|
||||||
|
<option value=""{{if $tel.type.0 != 'CELL' && $tel.type.0 != 'HOME' && $tel.type.0 != 'WORK' && $tel.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$tel.type.1}}</option>
|
||||||
|
<option value="CELL"{{if $tel.type.0 == 'CELL'}} selected="selected"{{/if}}>{{$mobile}}</option>
|
||||||
|
<option value="HOME"{{if $tel.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||||
|
<option value="WORK"{{if $tel.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||||
|
<option value="OTHER"{{if $tel.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||||
</select>
|
</select>
|
||||||
<i data-remove="vcard-adr" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
<input type="text" name="tel[]" value="{{$tel.nr}}" size="{{$tel.nr|count_characters:true}}" placeholder="{{$tel_label}}">
|
||||||
</div>
|
<i data-remove="vcard-tel" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.0}}" size="{{$adr.address.0|count_characters:true}}" placeholder="{{$po_box}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.1}}" size="{{$adr.address.1|count_characters:true}}" placeholder="{{$extra}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.2}}" size="{{$adr.address.2|count_characters:true}}" placeholder="{{$street}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.3}}" size="{{$adr.address.3|count_characters:true}}" placeholder="{{$locality}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.4}}" size="{{$adr.address.4|count_characters:true}}" placeholder="{{$region}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.5}}" size="{{$adr.address.5|count_characters:true}}" placeholder="{{$zip_code}}">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.6}}" size="{{$adr.address.6|count_characters:true}}" placeholder="{{$country}}">
|
|
||||||
</div>
|
</div>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/foreach}}
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="vcard-note form-group form-vcard-note">
|
|
||||||
<div class="form-vcard-note-wrapper">
|
<div class="vcard-email form-group">
|
||||||
{{if $vcard.note}}
|
<div class="form-vcard-email-wrapper">
|
||||||
<label>{{$note_label}}</label>
|
{{if $vcard.emails}}
|
||||||
<i data-remove="vcard-note" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
{{foreach $vcard.emails as $email}}
|
||||||
<textarea name="note" class="form-control">{{$vcard.note}}</textarea>
|
<div class="form-group form-vcard-email">
|
||||||
{{/if}}
|
<select name="email_type[]">
|
||||||
|
<option value=""{{if $email.type.0 != 'HOME' && $email.type.0 != 'WORK' && $email.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$email.type.1}}</option>
|
||||||
|
<option value="HOME"{{if $email.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||||
|
<option value="WORK"{{if $email.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||||
|
<option value="OTHER"{{if $email.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||||
|
</select>
|
||||||
|
<input type="text" name="email[]" value="{{$email.address}}" size="{{$email.address|count_characters:true}}" placeholder="{{$email_label}}">
|
||||||
|
<i data-remove="vcard-email" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
|
</div>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="vcard-impp form-group">
|
||||||
|
<div class="form-vcard-impp-wrapper">
|
||||||
|
{{if $vcard.impps}}
|
||||||
|
{{foreach $vcard.impps as $impp}}
|
||||||
|
<div class="form-group form-vcard-impp">
|
||||||
|
<select name="impp_type[]">
|
||||||
|
<option value=""{{if $impp.type.0 != 'HOME' && $impp.type.0 != 'WORK' && $impp.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$impp.type.1}}</option>
|
||||||
|
<option value="HOME"{{if $impp.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||||
|
<option value="WORK"{{if $impp.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||||
|
<option value="OTHER"{{if $impp.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||||
|
</select>
|
||||||
|
<input type="text" name="impp[]" value="{{$impp.address}}" size="{{$impp.address|count_characters:true}}" placeholder="{{$impp_label}}">
|
||||||
|
<i data-remove="vcard-impp" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
|
</div>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="vcard-url form-group">
|
||||||
|
<div class="form-vcard-url-wrapper">
|
||||||
|
{{if $vcard.urls}}
|
||||||
|
{{foreach $vcard.urls as $url}}
|
||||||
|
<div class="form-group form-vcard-url">
|
||||||
|
<select name="url_type[]">
|
||||||
|
<option value=""{{if $url.type.0 != 'HOME' && $url.type.0 != 'WORK' && $url.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$url.type.1}}</option>
|
||||||
|
<option value="HOME"{{if $url.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||||
|
<option value="WORK"{{if $url.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||||
|
<option value="OTHER"{{if $url.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||||
|
</select>
|
||||||
|
<input type="text" name="url[]" value="{{$url.address}}" size="{{$url.address|count_characters:true}}" placeholder="{{$url_label}}">
|
||||||
|
<i data-remove="vcard-url" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
|
</div>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="vcard-adr form-group">
|
||||||
|
<div class="form-vcard-adr-wrapper">
|
||||||
|
{{if $vcard.adrs}}
|
||||||
|
{{foreach $vcard.adrs as $adr}}
|
||||||
|
<div class="form-group form-vcard-adr">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{$adr_label}}</label>
|
||||||
|
<select name="adr_type[]">
|
||||||
|
<option value=""{{if $adr.type.0 != 'HOME' && $adr.type.0 != 'WORK' && $adr.type.0 != 'OTHER'}} selected="selected"{{/if}}>{{$adr.type.1}}</option>
|
||||||
|
<option value="HOME"{{if $adr.type.0 == 'HOME'}} selected="selected"{{/if}}>{{$home}}</option>
|
||||||
|
<option value="WORK"{{if $adr.type.0 == 'WORK'}} selected="selected"{{/if}}>{{$work}}</option>
|
||||||
|
<option value="OTHER"{{if $adr.type.0 == 'OTHER'}} selected="selected"{{/if}}>{{$other}}</option>
|
||||||
|
</select>
|
||||||
|
<i data-remove="vcard-adr" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.0}}" size="{{$adr.address.0|count_characters:true}}" placeholder="{{$po_box}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.1}}" size="{{$adr.address.1|count_characters:true}}" placeholder="{{$extra}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.2}}" size="{{$adr.address.2|count_characters:true}}" placeholder="{{$street}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.3}}" size="{{$adr.address.3|count_characters:true}}" placeholder="{{$locality}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.4}}" size="{{$adr.address.4|count_characters:true}}" placeholder="{{$region}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.5}}" size="{{$adr.address.5|count_characters:true}}" placeholder="{{$zip_code}}">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<input type="text" name="adr[{{$adr@index}}][]" value="{{$adr.address.6}}" size="{{$adr.address.6|count_characters:true}}" placeholder="{{$country}}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{/foreach}}
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="vcard-note form-group form-vcard-note">
|
||||||
|
<div class="form-vcard-note-wrapper">
|
||||||
|
{{if $vcard.note}}
|
||||||
|
<label>{{$note_label}}</label>
|
||||||
|
<i data-remove="vcard-note" data-id="{{$vcard.id}}" class="fa fa-trash-o remove-field drop-icons fakelink"></i>
|
||||||
|
<textarea name="note" class="form-control">{{$vcard.note}}</textarea>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="settings-submit-wrapper" >
|
||||||
|
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $affinity}}
|
||||||
<div class="settings-submit-wrapper" >
|
|
||||||
<button type="submit" name="done" value="{{$submit}}" class="btn btn-primary">{{$submit}}</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{if $affinity }}
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
<div class="section-subtitle-wrapper" role="tab" id="affinity-tool">
|
<div class="section-subtitle-wrapper" role="tab" id="affinity-tool">
|
||||||
<h3>
|
<h3>
|
||||||
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#affinity-tool-collapse" aria-expanded="true" aria-controls="affinity-tool-collapse">
|
<a data-toggle="collapse" data-parent="#contact-edit-tools" href="#affinity-tool-collapse" aria-expanded="true" aria-controls="affinity-tool-collapse">
|
||||||
{{$affinity }}
|
{{$affinity}}
|
||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
@ -397,7 +389,7 @@
|
|||||||
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
|
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{if $multiprofs }}
|
{{if $multiprofs}}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<strong>{{$lbl_vis2}}</strong>
|
<strong>{{$lbl_vis2}}</strong>
|
||||||
{{$profile_select}}
|
{{$profile_select}}
|
||||||
|
Reference in New Issue
Block a user