.page-header
  %h1= @app.name

%h2 How to send mail via Cuttlefish for #{@app.name}

%p
  Simple send smtp email in the normal way from your application with the following details
  %table.table.table-condensed
    %tr
      %td Host
      %td
        %strong= Rails.configuration.cuttlefish_domain
      %td
    %tr
      %td Port
      %td
        %strong= Rails.configuration.cuttlefish_smtp_port
      %td
    %tr
      %td Username
      %td
        %strong= @app.smtp_username
      %td
    %tr
      %td Password
      %td
        %strong= @app.smtp_password
      %td
        - unless @app.smtp_password_locked?
          = button_to "Keep this password", lock_password_app_path(@app), class: "btn btn-mini btn-primary"
          = button_to "Give me a new password", new_password_app_path(@app), class: "btn btn-mini"
    %tr
      %td Authentication
      %td
        %strong plain
      %td
%p Specific instructions for different languages and frameworks coming soon.

%p
  So far #{@app.name} has sent #{pluralize(@app.emails.count, 'email')}.
%hr
%h3 Remove this App

%p
  Here lies danger. Removing the app from Cuttlefish is permanent and can not be undone!
%p
  = button_to "Remove App", @app, :confirm => "Are you sure?", :method => :delete, :class => "btn btn-danger"

.page-header
  %h1= @app.name

%h2 How to send mail via Cuttlefish for #{@app.name}

%p
  Simple send smtp email in the normal way from your application with the following details
  %table.table.table-condensed
    %tr
      %td Host
      %td
        %strong= Rails.configuration.cuttlefish_domain
    %tr
      %td Port
      %td
        %strong= Rails.configuration.cuttlefish_smtp_port
    %tr
      %td Username
      %td
        %strong= @app.smtp_username
    %tr
      %td Password
      %td
        %strong= @app.smtp_password
    %tr
      %td Authentication
      %td
        %strong plain
%p Specific instructions for different languages and frameworks coming soon.

%p
  So far #{@app.name} has sent #{pluralize(@app.emails.count, 'email')}.
%hr
%h3 Remove this App

%p
  Here lies danger. Removing the app from Cuttlefish is permanent and can not be undone!
%p
  = button_to "Remove App", @app, :confirm => "Are you sure?", :method => :delete, :class => "btn btn-danger"

Remove ability from the ui to change password
Remove ability from the ui to change password
