This commit is contained in:
roberto 2024-12-27 17:44:06 +01:00
parent 2b5d602b61
commit 44af8fabec
3 changed files with 7 additions and 3 deletions

View File

@ -325,6 +325,10 @@ button.delete, .button.delete {
color: #ffffff; color: #ffffff;
} }
button span, .button span {
padding-left: 5px;
}
fieldset { fieldset {
border-radius: 8px; border-radius: 8px;
} }

View File

@ -27,7 +27,7 @@
</td> </td>
<td class="no-label">{{ widget_relation_type $relation_name "Link" `id="$relation_name"` }}</td> <td class="no-label">{{ widget_relation_type $relation_name "Link" `id="$relation_name"` }}</td>
<td class="no-label"> <td class="no-label">
<a class="button delete" href="#" onclick="document.getElementById('{{$relation_name}}-Row').remove()"><i class="bi bi-link-45deg" title="Remove relation"></i><span> Remove</span></a> <a class="button delete" href="#" onclick="document.getElementById('{{$relation_name}}-Row').remove()"><i class="bi bi-link-45deg" title="Remove relation"></i><span>Remove</span></a>
</td> </td>
</tr> </tr>
{{ end }} {{ end }}

View File

@ -51,8 +51,8 @@
</td> </td>
<td class="no-label {{$relation_name}}-Col">{{ widget_relation_type $relation_name $relation_type `id="$relation_name"` }}</td> <td class="no-label {{$relation_name}}-Col">{{ widget_relation_type $relation_name $relation_type `id="$relation_name"` }}</td>
<td class="no-label"> <td class="no-label">
<button id="Delete-{{$relation_name}}" class="delete" type="button" onclick="bm_item_relation_delete(this, {{$relation_name}}, {{$relation_name_remove}})"><i class="bi bi-x-square" title="Remove"></i><span> Remove</span></button> <button id="Delete-{{$relation_name}}" class="delete" type="button" onclick="bm_item_relation_delete(this, {{$relation_name}}, {{$relation_name_remove}})"><i class="bi bi-x-square" title="Remove"></i><span>Remove</span></button>
<button id="Undelete-{{$relation_name}}" style="margin-right: 5px;" class="delete" type="button" onclick="bm_item_relation_undelete(this, {{$relation_name}}, {{$relation_name_remove}})" hidden><i class="bi bi-arrow-counterclockwise" title="Undo"></i><span> Undo</span></button> <button id="Undelete-{{$relation_name}}" style="margin-right: 5px;" class="delete" type="button" onclick="bm_item_relation_undelete(this, {{$relation_name}}, {{$relation_name_remove}})" hidden><i class="bi bi-arrow-counterclockwise" title="Undo"></i><span>Undo</span></button>
</td> </td>
</tr> </tr>
{{ end }} {{ end }}