Sha256: f38d85229271bd3c646a66e06fcb618bcb586e84006259b2595234e5b7f7d01f

Contents?: true

Size: 1.37 KB

Versions: 12

Compression:

Stored size: 1.37 KB

Contents

<% if @session.signinable %>
  <article class="middle">

    <fieldset>
      <legend><h2>Your credentials</h2></legend>

      <label for='signinable_username'>Username</label>
      <input readonly='readonly' onclick='this.select()' type='text' id='signinable_username' value="<%= @session.signinable_username %>" />
      <label for='signinable_password'>Password</label>
      <input readonly='readonly' onclick='this.select()' type='text' id="signinable_password" value="<%= @session.signinable_password %>" />

      <%= form_for @session do |f| %>
        <%= f.submit 'Sign in' %>
        <%= link_to "Enter manually ⭢", DemoMode.sign_in_path(main_app), target: '_blank', class: 'button secondary' if DemoMode.sign_in_path(main_app) %>
      <% end %>
    </fieldset>
  </article>
<% else %>
  <article class="middle center" data-polling-refresh-url='<%= session_path(@session, format: :json) %>'>
    <figure>
      <%= instance_eval(&DemoMode.loader) %>
      <h4><span id="DemoTypedText"></span></h4>
    </figure>

    <script type="text/javascript">
      new Typed('#DemoTypedText', {
        strings: [
          'Just a moment...',
          'Launching the demo...',
          'Generating demo account...',
          'This could take a few minutes...'
        ],
        typeSpeed: 40,
        backSpeed: 40,
        showCursor: true
      });
    </script>
  </article>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
demo_mode-1.4.0 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.3.0 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.2.3 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.2.2 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.2.1 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.2.0 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.1.1 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.1.0 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.0.3 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.0.2 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.0.1 app/views/demo_mode/sessions/show.html.erb
demo_mode-1.0.0 app/views/demo_mode/sessions/show.html.erb