diff --git a/src/script/component/Ban.vue b/src/script/component/Ban.vue index d8f3de8..26feada 100644 --- a/src/script/component/Ban.vue +++ b/src/script/component/Ban.vue @@ -4,24 +4,24 @@ .noactive.stamp(title='Expired', v-if='expired') i.fa.fa-fw.fa-ban .info - .section - span.key User - span.value {{ user.display_name }} - .section - span.key Admin - span.value {{ admin.display_name }} - .section - span.key Reason - span.value {{ reason }} - .section - span.key Placed - span.value {{ new Date(created_at).toString() }} - .section - span.key Expires - span.value(v-if='expires_at') {{ new Date(expires_at).toString() }} - span.value(v-else='v-else') + .row + .col-3 User + .col {{ user.display_name }} + .row + .col-3 Admin + .col {{ admin.display_name }} + .row + .col-3 Reason + .col {{ reason }} + .row + .col-3 Placed + .col {{ new Date(created_at).toString() }} + .row + .col-3 Expires + .col(v-if='expires_at') {{ new Date(expires_at).toString() }} + .col(v-else='v-else') b This ban is permanent. - .button.remove(@click='$parent.$emit("pardon", id)') + .btn.btn-success.remove.mt-3(@click='$parent.$emit("pardon", id)') i.fa.fa-fw.fa-check | Pardon diff --git a/src/script/component/BanList.vue b/src/script/component/BanList.vue index 370615a..43f3375 100644 --- a/src/script/component/BanList.vue +++ b/src/script/component/BanList.vue @@ -1,7 +1,7 @@ diff --git a/src/script/component/UserModal.vue b/src/script/component/UserModal.vue index 1f0903e..dbc3e23 100644 --- a/src/script/component/UserModal.vue +++ b/src/script/component/UserModal.vue @@ -2,27 +2,27 @@ modal(:show='show', @close='close') .modal-header h3 Edit User - .modal-body.aligned-form - .message.error(v-if='error') {{ error }} - .cell + .modal-body + .alert.alert-danger(v-if='error') {{ error }} + .form-group label(for="username") Username - input(type="text" id="username" name="username" v-model="username") - .cell + input.form-control(type="text" id="username" name="username" v-model="username") + .form-group label(for="display_name") Display Name - input(type="text" id="display_name" name="display_name" v-model="display_name") - .cell + input.form-control(type="text" id="display_name" name="display_name" v-model="display_name") + .form-group label(for="email") Email - input(type="email" id="email" name="email" v-model="email") - .cell + input.form-control(type="email" id="email" name="email" v-model="email") + .form-group label(for="privilege") Privilege input(type="range" min="0" max="5" step="1" id="privilege" name="privilege" v-model="nw_privilege") span {{ nw_privilege }} - .cell - label(for="activated") Activated - input(type="checkbox" id="activated" name="activated" v-model="activated") - .modal-footer.text-align - button(@click='submit') Done - button(@click='close') Cancel + .form-check + input.form-check-input(type="checkbox" id="activated" name="activated" v-model="activated") + label.form-check-label(for="activated") Activated + .modal-footer.text-right + button.btn.btn-primary(@click='submit') Done + button.btn.btn-secondary(@click='close') Cancel