More butterball fixes for "view profile" template

This commit is contained in:
Lance Edgar 2024-06-03 11:15:22 -05:00
parent 30238528fe
commit b27987f1d1

View file

@ -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:
<span class="icon-text">
<o-icon icon="edit" /> <o-icon icon="edit" />
<span>Edit</span>
</span>
% else: % else:
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
% endif
Edit Edit
% endif
</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: % if request.use_oruga:
class="has-text-danger"
% else:
class="grid-action has-text-danger"
% endif
>
% if request.use_oruga:
<span class="icon-text">
<o-icon icon="trash" /> <o-icon icon="trash" />
<span>Delete</span>
</span>
% else: % else:
<i class="fas fa-trash"></i> <i class="fas fa-trash"></i>
% endif
Delete Delete
% endif
</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:
<span class="icon-text">
<o-icon icon="star" /> <o-icon icon="star" />
<span>Set Preferred</span>
</span>
% else: % else:
<i class="fas fa-star"></i> <i class="fas fa-star"></i>
% endif
Set Preferred Set Preferred
% endif
</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:
<span class="icon-text">
<o-icon icon="edit" /> <o-icon icon="edit" />
<span>Edit</span>
</span>
% else: % else:
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
% endif
Edit Edit
% endif
</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: % if request.use_oruga:
class="has-text-danger"
% else:
class="grid-action has-text-danger"
% endif
>
% if request.use_oruga:
<span class="icon-text">
<o-icon icon="trash" /> <o-icon icon="trash" />
<span>Delete</span>
</span>
% else: % else:
<i class="fas fa-trash"></i> <i class="fas fa-trash"></i>
% endif
Delete Delete
% endif
</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:
<span class="icon-text">
<o-icon icon="star" /> <o-icon icon="star" />
<span>Set Preferred</span>
</span>
% else: % else:
<i class="fas fa-star"></i> <i class="fas fa-star"></i>
% endif
Set Preferred Set Preferred
% endif
</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)">
% if request.use_oruga:
<span class="icon-text">
<o-icon icon="edit" />
<span>Edit</span>
</span>
% else:
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
Edit 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)">
% if request.use_oruga:
<span class="icon-text">
<o-icon icon="edit" />
<span>Edit</span>
</span>
% else:
<i class="fas fa-edit"></i> <i class="fas fa-edit"></i>
Edit 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">
% if request.use_oruga:
<span class="icon-text">
<o-icon icon="trash" />
<span>Delete</span>
</span>
% else:
<i class="fas fa-trash"></i> <i class="fas fa-trash"></i>
Delete 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>