Skip to content
Snippets Groups Projects
Commit 77522dc5 authored by Julian's avatar Julian
Browse files

Improve mobile UI

parent a94bc45f
No related branches found
No related tags found
1 merge request!111Resolve "[Person overview] Implement multiple selection for marking absences as excused or for deleting"
Pipeline #10703 failed
...@@ -68,9 +68,28 @@ td.material-icons { ...@@ -68,9 +68,28 @@ td.material-icons {
transform: translate(-50%, 50%); transform: translate(-50%, 50%);
} }
.medium-high-right { @media screen and (min-width: 600px) {
position: relative; /* On medium and up devices */
top: 50%; .medium-high-right {
right: 0; float: right;
transform: translate(0%, 50%); transform: translate(0%, 50%);
} }
\ No newline at end of file }
@media screen and (max-width: 600px) {
/* Only on small devices */
.full-width-s {
width: 100%;
}
#heading {
display: block;
}
#heading + a {
float: none!important;
}
}
.overflow-x-scroll {
overflow-x: scroll;
}
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</a> </a>
{% endif %} {% endif %}
{% blocktrans with person=person %} {% blocktrans with person=person %}
Class register overview for {{ person }} <span id="heading">Class register overview for {{ person }}</span>
{% endblocktrans %} {% endblocktrans %}
{% has_perm "alsijil.register_absence" user person as can_register_absence %} {% has_perm "alsijil.register_absence" user person as can_register_absence %}
{% if can_register_absence %} {% if can_register_absence %}
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<div class="row"> <div class="row">
<div class="col s12 m3 l5 push-m9 push-l7"> <div class="col s12 m3 l5 push-m9 push-l7">
<button <button
class="modal-trigger right btn primary-color waves-effect waves-light class="modal-trigger btn primary-color waves-effect waves-light
{% if can_mark_all_as_excused %} medium-high-right {% endif %}" {% if can_mark_all_as_excused %} medium-high-right {% endif %}"
data-target="filter-modal" data-target="filter-modal"
type="button"> type="button">
...@@ -93,17 +93,19 @@ ...@@ -93,17 +93,19 @@
{% csrf_token %} {% csrf_token %}
<div class="col s12 m9 l7 pull-m3 pull-l5 row"> <div class="col s12 m9 l7 pull-m3 pull-l5 row">
{% if can_mark_all_as_excused %} {% if can_mark_all_as_excused %}
<div class="col s12 m10"> <div class="col s12 m9">
{% form form=action_form %}{% endform %} {% form form=action_form %}{% endform %}
</div> </div>
<div class="col s10 m2"> <div class="col s12 m3">
<button type="submit" class="btn waves-effect waves-light medium-high"> <button type="submit" class="btn waves-effect waves-light medium-high full-width-s">
Run <i class="material-icons right">send</i> Run <i class="material-icons right">send</i>
</button> </button>
</div> </div>
{% endif %} {% endif %}
</div> </div>
{% render_table personal_notes_table %} <div class="col s12 overflow-x-scroll">
{% render_table personal_notes_table %}
</div>
</form> </form>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment