Fix button types and remove unused classes
Co-authored-by: Thomas Rupprecht <rupprecht.thomas@gmail.com>
This commit is contained in:
parent
668a9e86f5
commit
031e1a08fe
|
@ -120,7 +120,7 @@ function admin_user()
|
||||||
|
|
||||||
$html .= '</td></tr>' . "\n";
|
$html .= '</td></tr>' . "\n";
|
||||||
$html .= '</table>' . "\n" . '<br />' . "\n";
|
$html .= '</table>' . "\n" . '<br />' . "\n";
|
||||||
$html .= '<input type="submit" value="' . __('form.save') . '" class="btn btn-primary">';
|
$html .= '<button type="submit" class="btn btn-primary">' . __('form.save') . '</button>' . "\n";
|
||||||
$html .= '</form>';
|
$html .= '</form>';
|
||||||
|
|
||||||
$html .= '<hr />';
|
$html .= '<hr />';
|
||||||
|
@ -136,7 +136,7 @@ function admin_user()
|
||||||
$html .= ' <tr><td>' . __('Confirm password') . '</td><td>' . '<input type="password" size="40" name="new_pw2" value="" class="form-control" autocomplete="new-password"></td></tr>' . "\n";
|
$html .= ' <tr><td>' . __('Confirm password') . '</td><td>' . '<input type="password" size="40" name="new_pw2" value="" class="form-control" autocomplete="new-password"></td></tr>' . "\n";
|
||||||
|
|
||||||
$html .= '</table>' . "\n" . '<br />' . "\n";
|
$html .= '</table>' . "\n" . '<br />' . "\n";
|
||||||
$html .= '<input type="submit" value="' . __('form.save') . '" class="btn btn-primary">' . "\n";
|
$html .= '<button type="submit" class="btn btn-primary">' . __('form.save') . '</button>' . "\n";
|
||||||
$html .= '</form>';
|
$html .= '</form>';
|
||||||
|
|
||||||
$html .= '<hr />';
|
$html .= '<hr />';
|
||||||
|
@ -172,7 +172,7 @@ function admin_user()
|
||||||
|
|
||||||
$html .= '</div><br>';
|
$html .= '</div><br>';
|
||||||
|
|
||||||
$html .= '<input type="submit" value="' . __('form.save') . '" class="btn btn-primary">' . "\n";
|
$html .= '<button type="submit" class="btn btn-primary">' . __('form.save') . '</button>' . "\n";
|
||||||
$html .= '</form>';
|
$html .= '</form>';
|
||||||
|
|
||||||
$html .= '<hr />';
|
$html .= '<hr />';
|
||||||
|
|
|
@ -188,15 +188,13 @@ function AngelType_view_buttons(
|
||||||
if ($admin_angeltypes || $supporter) {
|
if ($admin_angeltypes || $supporter) {
|
||||||
$buttons[] = button(
|
$buttons[] = button(
|
||||||
page_link_to('angeltypes', ['action' => 'edit', 'angeltype_id' => $angeltype->id]),
|
page_link_to('angeltypes', ['action' => 'edit', 'angeltype_id' => $angeltype->id]),
|
||||||
icon('pencil') . __('edit'),
|
icon('pencil') . __('edit')
|
||||||
'edit'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($admin_angeltypes) {
|
if ($admin_angeltypes) {
|
||||||
$buttons[] = button(
|
$buttons[] = button(
|
||||||
page_link_to('angeltypes', ['action' => 'delete', 'angeltype_id' => $angeltype->id]),
|
page_link_to('angeltypes', ['action' => 'delete', 'angeltype_id' => $angeltype->id]),
|
||||||
icon('trash') . __('delete'),
|
icon('trash') . __('delete')
|
||||||
'delete'
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,7 @@ function Room_view(Room $room, ShiftsFilterRenderer $shiftsFilterRenderer, Shift
|
||||||
auth()->can('admin_rooms') ? buttons([
|
auth()->can('admin_rooms') ? buttons([
|
||||||
button(
|
button(
|
||||||
page_link_to('admin/rooms/edit/' . $room->id),
|
page_link_to('admin/rooms/edit/' . $room->id),
|
||||||
icon('pencil') . __('edit'),
|
icon('pencil') . __('edit')
|
||||||
'btn'
|
|
||||||
),
|
),
|
||||||
]) : '',
|
]) : '',
|
||||||
$dect,
|
$dect,
|
||||||
|
|
|
@ -73,13 +73,11 @@ function ShiftType_view(ShiftType $shifttype)
|
||||||
button(page_link_to('shifttypes'), shifttypes_title(), 'back'),
|
button(page_link_to('shifttypes'), shifttypes_title(), 'back'),
|
||||||
button(
|
button(
|
||||||
page_link_to('shifttypes', ['action' => 'edit', 'shifttype_id' => $shifttype->id]),
|
page_link_to('shifttypes', ['action' => 'edit', 'shifttype_id' => $shifttype->id]),
|
||||||
icon('pencil') . __('edit'),
|
icon('pencil') . __('edit')
|
||||||
'edit'
|
|
||||||
),
|
),
|
||||||
button(
|
button(
|
||||||
page_link_to('shifttypes', ['action' => 'delete', 'shifttype_id' => $shifttype->id]),
|
page_link_to('shifttypes', ['action' => 'delete', 'shifttype_id' => $shifttype->id]),
|
||||||
icon('trash') . __('delete'),
|
icon('trash') . __('delete'),
|
||||||
'delete'
|
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
heading(__('Description'), 2),
|
heading(__('Description'), 2),
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row d-print-none">
|
<div class="row d-print-none">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<input class="btn btn-primary" type="submit" style="width:100%; margin: 1em 0" value="%filter%">
|
<button class="btn btn-primary" type="submit" style="width:100%; margin: 1em 0">%filter%</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue