Sha256: 58aa83689326160b4a99bd64ad908ae154146d433e01f000e57ab816e7de0403

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 KB

Contents

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous">

<style>
  body {
    background: #fff url(<%="#{base_url}/legend.gif"%>) no-repeat fixed right 130px;
  }

  .form-large input {
    font-size: 18px;
    padding: 8px;
    height: auto;
    line-height: normal;
  }

  .form-wide {
    width: 480px;
  }
</style>

<body>
  <div style="margin-top: 100px"></div>

  <div class="container">
    <h1>Shopify Sinatra App</h1>
    <h2><small>This app requires you to login to start using it.</small></h2>
  </div>

  <div style="margin-top: 30px"></div>

  <div class="container">
    <form id="login" role="form" class="form-large" action="/auth/shopify" method="post">
      <input type="hidden" name="authenticity_token" value="<%= env['rack.session'][:csrf] %>" />
      <div class="input-group form-wide">
        <input class="form-control" name="shop" value="<%= params['shop'] %>" placeholder="your-shop-url.myshopify.com">
        <span class="input-group-btn">
          <input class="btn" type="submit" value="Login" />
        </span>
      </div>
    </form>
  </div>
 </body>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
shopify-sinatra-app-1.2.1 example/views/login.erb
sinatra-embedded-shopify-app-0.5.16 example/views/login.erb
shopify-sinatra-app-1.2.0 example/views/login.erb
shopify-sinatra-app-1.1.1 example/views/login.erb
shopify-sinatra-app-1.1.0 example/views/login.erb
shopify-sinatra-app-1.0.1 example/views/login.erb
shopify-sinatra-app-1.0.0 example/views/login.erb