More butterball fixes for "view profile" template
This commit is contained in:
parent
30238528fe
commit
b27987f1d1
|
@ -404,33 +404,53 @@
|
||||||
% if request.has_perm('people_profile.edit_person'):
|
% if request.has_perm('people_profile.edit_person'):
|
||||||
<${b}-table-column label="Actions"
|
<${b}-table-column label="Actions"
|
||||||
v-slot="props">
|
v-slot="props">
|
||||||
<a class="grid-action"
|
<a href="#" @click.prevent="editPhoneInit(props.row)"
|
||||||
href="#" @click.prevent="editPhoneInit(props.row)">
|
% if not request.use_oruga:
|
||||||
|
class="grid-action"
|
||||||
|
% endif
|
||||||
|
>
|
||||||
% if request.use_oruga:
|
% if request.use_oruga:
|
||||||
<o-icon icon="edit" />
|
<span class="icon-text">
|
||||||
|
<o-icon icon="edit" />
|
||||||
|
<span>Edit</span>
|
||||||
|
</span>
|
||||||
% else:
|
% else:
|
||||||
<i class="fas fa-edit"></i>
|
<i class="fas fa-edit"></i>
|
||||||
|
Edit
|
||||||
% endif
|
% endif
|
||||||
Edit
|
|
||||||
</a>
|
</a>
|
||||||
<a class="grid-action has-text-danger"
|
<a href="#" @click.prevent="deletePhoneInit(props.row)"
|
||||||
href="#" @click.prevent="deletePhoneInit(props.row)">
|
% if request.use_oruga:
|
||||||
|
class="has-text-danger"
|
||||||
|
% else:
|
||||||
|
class="grid-action has-text-danger"
|
||||||
|
% endif
|
||||||
|
>
|
||||||
% if request.use_oruga:
|
% if request.use_oruga:
|
||||||
<o-icon icon="trash" />
|
<span class="icon-text">
|
||||||
|
<o-icon icon="trash" />
|
||||||
|
<span>Delete</span>
|
||||||
|
</span>
|
||||||
% else:
|
% else:
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-trash"></i>
|
||||||
|
Delete
|
||||||
% endif
|
% endif
|
||||||
Delete
|
|
||||||
</a>
|
</a>
|
||||||
<a class="grid-action"
|
<a v-if="!props.row.preferred"
|
||||||
href="#" @click.prevent="preferPhoneInit(props.row)"
|
href="#" @click.prevent="preferPhoneInit(props.row)"
|
||||||
v-if="!props.row.preferred">
|
% if not request.use_oruga:
|
||||||
|
class="grid-action"
|
||||||
|
% endif
|
||||||
|
>
|
||||||
% if request.use_oruga:
|
% if request.use_oruga:
|
||||||
<o-icon icon="star" />
|
<span class="icon-text">
|
||||||
|
<o-icon icon="star" />
|
||||||
|
<span>Set Preferred</span>
|
||||||
|
</span>
|
||||||
% else:
|
% else:
|
||||||
<i class="fas fa-star"></i>
|
<i class="fas fa-star"></i>
|
||||||
|
Set Preferred
|
||||||
% endif
|
% endif
|
||||||
Set Preferred
|
|
||||||
</a>
|
</a>
|
||||||
</${b}-table-column>
|
</${b}-table-column>
|
||||||
% endif
|
% endif
|
||||||
|
@ -618,33 +638,52 @@
|
||||||
% if request.has_perm('people_profile.edit_person'):
|
% if request.has_perm('people_profile.edit_person'):
|
||||||
<${b}-table-column label="Actions"
|
<${b}-table-column label="Actions"
|
||||||
v-slot="props">
|
v-slot="props">
|
||||||
<a class="grid-action"
|
<a href="#" @click.prevent="editEmailInit(props.row)"
|
||||||
href="#" @click.prevent="editEmailInit(props.row)">
|
% if not request.use_oruga:
|
||||||
|
class="grid-action"
|
||||||
|
% endif
|
||||||
|
>
|
||||||
% if request.use_oruga:
|
% if request.use_oruga:
|
||||||
<o-icon icon="edit" />
|
<span class="icon-text">
|
||||||
|
<o-icon icon="edit" />
|
||||||
|
<span>Edit</span>
|
||||||
|
</span>
|
||||||
% else:
|
% else:
|
||||||
<i class="fas fa-edit"></i>
|
<i class="fas fa-edit"></i>
|
||||||
|
Edit
|
||||||
% endif
|
% endif
|
||||||
Edit
|
|
||||||
</a>
|
</a>
|
||||||
<a class="grid-action has-text-danger"
|
<a href="#" @click.prevent="deleteEmailInit(props.row)"
|
||||||
href="#" @click.prevent="deleteEmailInit(props.row)">
|
% if request.use_oruga:
|
||||||
|
class="has-text-danger"
|
||||||
|
% else:
|
||||||
|
class="grid-action has-text-danger"
|
||||||
|
% endif
|
||||||
|
>
|
||||||
% if request.use_oruga:
|
% if request.use_oruga:
|
||||||
<o-icon icon="trash" />
|
<span class="icon-text">
|
||||||
|
<o-icon icon="trash" />
|
||||||
|
<span>Delete</span>
|
||||||
|
</span>
|
||||||
% else:
|
% else:
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-trash"></i>
|
||||||
|
Delete
|
||||||
% endif
|
% endif
|
||||||
Delete
|
|
||||||
</a>
|
</a>
|
||||||
<a class="grid-action"
|
<a v-if="!props.row.preferred"
|
||||||
href="#" @click.prevent="preferEmailInit(props.row)"
|
% if not request.use_oruga:
|
||||||
v-if="!props.row.preferred">
|
class="grid-action"
|
||||||
|
% endif
|
||||||
|
href="#" @click.prevent="preferEmailInit(props.row)">
|
||||||
% if request.use_oruga:
|
% if request.use_oruga:
|
||||||
<o-icon icon="star" />
|
<span class="icon-text">
|
||||||
|
<o-icon icon="star" />
|
||||||
|
<span>Set Preferred</span>
|
||||||
|
</span>
|
||||||
% else:
|
% else:
|
||||||
<i class="fas fa-star"></i>
|
<i class="fas fa-star"></i>
|
||||||
|
Set Preferred
|
||||||
% endif
|
% endif
|
||||||
Set Preferred
|
|
||||||
</a>
|
</a>
|
||||||
</${b}-table-column>
|
</${b}-table-column>
|
||||||
% endif
|
% endif
|
||||||
|
@ -1200,8 +1239,15 @@
|
||||||
label="Actions"
|
label="Actions"
|
||||||
v-slot="props">
|
v-slot="props">
|
||||||
<a href="#" @click.prevent="editEmployeeHistoryInit(props.row)">
|
<a href="#" @click.prevent="editEmployeeHistoryInit(props.row)">
|
||||||
<i class="fas fa-edit"></i>
|
% if request.use_oruga:
|
||||||
Edit
|
<span class="icon-text">
|
||||||
|
<o-icon icon="edit" />
|
||||||
|
<span>Edit</span>
|
||||||
|
</span>
|
||||||
|
% else:
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
Edit
|
||||||
|
% endif
|
||||||
</a>
|
</a>
|
||||||
</${b}-table-column>
|
</${b}-table-column>
|
||||||
% endif
|
% endif
|
||||||
|
@ -1428,15 +1474,30 @@
|
||||||
v-slot="props">
|
v-slot="props">
|
||||||
% if request.has_perm('people_profile.edit_note'):
|
% if request.has_perm('people_profile.edit_note'):
|
||||||
<a href="#" @click.prevent="editNoteInit(props.row)">
|
<a href="#" @click.prevent="editNoteInit(props.row)">
|
||||||
<i class="fas fa-edit"></i>
|
% if request.use_oruga:
|
||||||
Edit
|
<span class="icon-text">
|
||||||
|
<o-icon icon="edit" />
|
||||||
|
<span>Edit</span>
|
||||||
|
</span>
|
||||||
|
% else:
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
Edit
|
||||||
|
% endif
|
||||||
</a>
|
</a>
|
||||||
% endif
|
% endif
|
||||||
% if request.has_perm('people_profile.delete_note'):
|
% if request.has_perm('people_profile.delete_note'):
|
||||||
<a href="#" @click.prevent="deleteNoteInit(props.row)"
|
<a href="#" @click.prevent="deleteNoteInit(props.row)"
|
||||||
class="has-text-danger">
|
class="has-text-danger">
|
||||||
<i class="fas fa-trash"></i>
|
% if request.use_oruga:
|
||||||
Delete
|
<span class="icon-text">
|
||||||
|
<o-icon icon="trash" />
|
||||||
|
<span>Delete</span>
|
||||||
|
</span>
|
||||||
|
% else:
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
Delete
|
||||||
|
% endif
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
% endif
|
% endif
|
||||||
</${b}-table-column>
|
</${b}-table-column>
|
||||||
|
@ -1477,14 +1538,16 @@
|
||||||
|
|
||||||
<b-field label="Subject">
|
<b-field label="Subject">
|
||||||
<b-input v-model.trim="editNoteSubject"
|
<b-input v-model.trim="editNoteSubject"
|
||||||
:disabled="editNoteDelete">
|
:disabled="editNoteDelete"
|
||||||
|
expanded>
|
||||||
</b-input>
|
</b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
<b-field label="Text">
|
<b-field label="Text">
|
||||||
<b-input v-model.trim="editNoteText"
|
<b-input v-model.trim="editNoteText"
|
||||||
type="textarea"
|
type="textarea"
|
||||||
:disabled="editNoteDelete">
|
:disabled="editNoteDelete"
|
||||||
|
expanded>
|
||||||
</b-input>
|
</b-input>
|
||||||
</b-field>
|
</b-field>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue