forked from External/greenlight
		
	localize views
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
      <div class="modal-body">
 | 
			
		||||
        <div class="card-body p-6">
 | 
			
		||||
          <div class="card-title">
 | 
			
		||||
            <h3>Create New Room</h3>
 | 
			
		||||
            <h3><%= t("modal.create_room.title") %></h3>
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <%= form_for(:room, url: rooms_path) do |f| %>
 | 
			
		||||
@@ -12,13 +12,13 @@
 | 
			
		||||
              <span class="input-icon-addon">
 | 
			
		||||
                <i class="fas fa-chalkboard-teacher"></i>
 | 
			
		||||
              </span>
 | 
			
		||||
              <%= f.text_field :name, id: "room-name", class: "form-control", value: "", placeholder: "Enter a room name...", autocomplete: :off %>
 | 
			
		||||
              <div class="invalid-feedback text-left">Room name cannot be blank.</div>
 | 
			
		||||
              <%= f.text_field :name, id: "room-name", class: "form-control", value: "", placeholder: t("modal.create_room.name_placeholder"), autocomplete: :off %>
 | 
			
		||||
              <div class="invalid-feedback text-left"><%= t("modal.create_room.not_blank") %></div>
 | 
			
		||||
            </div>
 | 
			
		||||
            <label class="custom-switch mt-5 mb-5 float-left">
 | 
			
		||||
              <%= f.check_box :auto_join, class: "custom-switch-input", checked: false %>
 | 
			
		||||
              <span class="custom-switch-indicator"></span>
 | 
			
		||||
              <span class="custom-switch-description">Automatically join me into the room.</span>
 | 
			
		||||
              <span class="custom-switch-description"><%= t("modal.create_room.auto_join") %></span>
 | 
			
		||||
            </label>
 | 
			
		||||
          <div class="form-footer">
 | 
			
		||||
            <%= f.submit "Create Room", id: "create-room-submit", class: "btn btn-outline-primary btn-block btn-pill" %>
 | 
			
		||||
@@ -26,7 +26,7 @@
 | 
			
		||||
          <% end %>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="card-footer">
 | 
			
		||||
          <p>You will be free to delete this room at any time.</p>
 | 
			
		||||
          <p><%= t("modal.create_room.free_delete") %></p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,20 +4,20 @@
 | 
			
		||||
      <div class="modal-body">
 | 
			
		||||
        <div class="card-body p-6">
 | 
			
		||||
          <div class="card-title">
 | 
			
		||||
            <h3>Are you sure you want to delete <%= room.name %>?</h3>
 | 
			
		||||
            <h3><%= t("modal.delete_room.confirm", room: room.name) %></h3>
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <button type="button" class="btn btn-pill btn-info my-1 btn-del-room" data-dismiss="modal">
 | 
			
		||||
            On second thought, I'll keep it.
 | 
			
		||||
            <%= t("modal.delete_room.keep") %>
 | 
			
		||||
          </button>
 | 
			
		||||
 | 
			
		||||
          <%= button_to room, method: :delete, id: "delete-confirm", class: "btn btn-pill btn-danger my-1 btn-del-room" do %>
 | 
			
		||||
            I'm sure, delete this room.
 | 
			
		||||
            <%= t("modal.delete_room.delete") %>
 | 
			
		||||
          <% end %>
 | 
			
		||||
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="card-footer">
 | 
			
		||||
          <p>You will <b>not</b> be able to recover this room or any of its associated recordings.</p>
 | 
			
		||||
          <p><%= t("modal.delete_room.warning").html_safe %></p>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 
 | 
			
		||||
@@ -4,18 +4,22 @@
 | 
			
		||||
      <div class="modal-body">
 | 
			
		||||
        <div class="card-body p-6">
 | 
			
		||||
          <div class="card-title">
 | 
			
		||||
            <h3>Login</h3>
 | 
			
		||||
            <h3><%= t("login") %></h3>
 | 
			
		||||
          </div>
 | 
			
		||||
 | 
			
		||||
          <% unless configured_providers.length.zero? %>
 | 
			
		||||
            <% configured_providers.each do |provider| %>
 | 
			
		||||
              <%= link_to omniauth_login_url(provider), class: "btn btn-pill btn-#{provider} btn-block" do %>
 | 
			
		||||
                <i class="fab fa-<%= provider %>"></i> <%= "Login with #{provider.capitalize}" %>
 | 
			
		||||
                <i class="fab fa-<%= provider %>"></i> <%= t("modal.login.with", provider: provider.capitalize) %>
 | 
			
		||||
              <% end %>
 | 
			
		||||
            <% end %>
 | 
			
		||||
 | 
			
		||||
            <div class="or-line my-6">
 | 
			
		||||
              <div><span class="text-uppercase">or</span></div>
 | 
			
		||||
              <div>
 | 
			
		||||
                <span class="text-uppercase">
 | 
			
		||||
                  <%= t("modal.login.or") %>
 | 
			
		||||
                </span>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
          <% end %>
 | 
			
		||||
 | 
			
		||||
@@ -25,7 +29,7 @@
 | 
			
		||||
                <span class="input-icon-addon">
 | 
			
		||||
                  <i class="fas fa-at"></i>
 | 
			
		||||
                </span>
 | 
			
		||||
                <%= f.text_field :email, class: "form-control", placeholder: "Email", value: "" %>
 | 
			
		||||
                <%= f.text_field :email, class: "form-control", placeholder: t("email"), value: "" %>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
@@ -34,12 +38,12 @@
 | 
			
		||||
                <span class="input-icon-addon">
 | 
			
		||||
                  <i class="fas fa-key"></i>
 | 
			
		||||
                </span>
 | 
			
		||||
                <%= f.password_field :password, class: "form-control", placeholder: "Password", value: "" %>
 | 
			
		||||
                <%= f.password_field :password, class: "form-control", placeholder: t("password"), value: "" %>
 | 
			
		||||
              </div>
 | 
			
		||||
            </div>
 | 
			
		||||
 | 
			
		||||
            <div class="form-footer">
 | 
			
		||||
              <%= f.submit "Login", class: "btn btn-outline-primary btn-block btn-pill" %>
 | 
			
		||||
              <%= f.submit t("login"), class: "btn btn-outline-primary btn-block btn-pill" %>
 | 
			
		||||
            </div>
 | 
			
		||||
          <% end %>
 | 
			
		||||
        </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user