forked from External/greenlight
Improvements to create room modal (#2152)
This commit is contained in:
parent
c8a104c76e
commit
56be1ad2ae
|
@ -121,4 +121,8 @@
|
||||||
|
|
||||||
#room-owner-name {
|
#room-owner-name {
|
||||||
line-height: 12px;
|
line-height: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.create-room-button {
|
||||||
|
width: 49%;
|
||||||
}
|
}
|
|
@ -28,7 +28,7 @@
|
||||||
<span class="input-icon-addon">
|
<span class="input-icon-addon">
|
||||||
<i class="fas fa-chalkboard-teacher"></i>
|
<i class="fas fa-chalkboard-teacher"></i>
|
||||||
</span>
|
</span>
|
||||||
<%= f.text_field :name, id: "create-room-name", class: "form-control text-center", value: "", placeholder: t("modal.create_room.name_placeholder"), autocomplete: :off %>
|
<%= f.text_field :name, id: "create-room-name", class: "form-control text-center", value: "", placeholder: t("modal.create_room.name_placeholder"), autocomplete: :off, required: true %>
|
||||||
<div class="invalid-feedback text-left"><%= t("modal.create_room.not_blank") %></div>
|
<div class="invalid-feedback text-left"><%= t("modal.create_room.not_blank") %></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -91,8 +91,12 @@
|
||||||
<span class="custom-switch-indicator float-right cursor-pointer"></span>
|
<span class="custom-switch-indicator float-right cursor-pointer"></span>
|
||||||
</label>
|
</label>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<%= f.submit t("modal.create_room.create"), class: "create-only btn btn-primary btn-block" %>
|
<%= f.submit t("modal.create_room.create"), class: "create-only btn btn-primary create-room-button" %>
|
||||||
<%= f.submit t("modal.room_settings.update"), class: "update-only btn btn-primary btn-block" %>
|
<%= f.submit t("modal.room_settings.update"), class: "update-only btn btn-primary create-room-button" %>
|
||||||
|
|
||||||
|
<button type="button" class="btn btn-secondary create-room-button" data-dismiss="modal">
|
||||||
|
<%= t("cancel") %>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue