jdutil/spree_drop_ship

View on GitHub
app/views/spree/supplier_mailer/welcome.html.erb

Summary

Maintainability
Test Coverage
<table cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody>
    <tr>
      <td align="center" valign="top" style="padding:20px 0 20px 0">
        <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #e0e0e0">
          <tbody>
            <tr>
              <td valign="top">
                <h1><%= link_to Spree::Store.current.name, spree.root_url %></h1>
              </td>
            </tr>
            <tr>
              <td valign="top">
                <h1 style="font-size:22px;font-weight:normal;line-height:22px;"><%= Spree.t('supplier_mailer.welcome.hello', name: @supplier.name ) %></h1>
                <p style="font-size:12px;line-height:16px;">
                  <%= Spree.t('supplier_mailer.welcome.manage_your_account' ) %>
                  <%= link_to Spree.t('supplier_mailer.welcome.logging_into_your_account'), spree.login_url, target: '_blank' %>
                </p>
              </td>
            </tr>
            <tr>
              <td>
                <h2 style="font-size:18px;font-weight:normal;"><%= Spree.t('supplier_mailer.welcome.please_verify_your_information') %></h2>
                <table cellspacing="0" cellpadding="0" border="0" width="650">
                  <thead>
                    <tr>
                      <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px;padding:5px 9px 6px 9px;line-height:1em"><%= Spree.t('supplier_mailer.welcome.supplier_information') %></th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td valign="top" style="font-size:12px;padding:7px 9px 9px 9px;border-left:1px solid #eaeaea;border-bottom:1px solid #eaeaea;border-right:1px solid #eaeaea">
                        <b><%= Spree.t(:name) %>:</b> <%= @supplier.name %><br/>
                        <b><%= Spree.t(:email) %>:</b> <%= mail_to @supplier.email %><br/>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td bgcolor="#EAEAEA" align="center" style="background:#eaeaea;text-align:center">
                <center>
                  <p style="font-size:12px;margin:0"><%= raw Spree.t('supplier_mailer.welcome.thank_you_again', name: Spree::Store.current.name) %></p>
                </center>
              </td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table>