saasbook/esaas-engagements

View on GitHub
app/views/my_projects/_form.html.haml

Summary

Maintainability
Test Coverage
.well#status
  .text-lg Status: #{@app.status.humanize(capitalize: false)}

.well
  .text-lg Description
  = text_area_tag :description, @description, {size: "24x6", 'aria-label': 'description'}
  %span.form-text
    - if @description == @app&.description
      The field above has been pre-filled with the current approved app's description
    - elsif @description == @app_edit_request&.description
      The field above has been pre-filled with your not-yet approved edit request for the apps's description

.well
  .text-lg App Initial Features
  = text_area_tag :features, @features, {size: "24x6", 'aria-label': 'description'}
  %span.form-text
    - if @features == @app&.features
      The field above has been pre-filled with the current approved app's features
    - elsif @features == @app_edit_request&.features
      The field above has been pre-filled with the not-yet approved edit request for the app's features

.row
  .col-xs-4.col-sm-4.col-md-4.col-lg-4
    .well#deployment
      .text-lg Deployment
      %p{:style => "word-wrap: break-word;"}
        = @app.deployment_url
  .col-xs-4.col-sm-4.col-md-4.col-lg-4
    .well#github
      .text-lg Github
      %p{:style => "word-wrap: break-word;"}
        = @app.repository_url
  .col-xs-4.col-sm-4.col-md-4.col-lg-4
    .well#pivotal
      .text-lg Pivotal Tracker
      %p{:style => "word-wrap: break-word;"}
        = @app.pivotal_tracker_url