add pharmacy data to PA request

using select2 gem for prettier CSS
Good call, that's the more Ruby way. 

- mark

On Jul 19, 2014, at 12:14 PM, Mark Lorenz <notifications@github.com> wrote:

In app/views/prescriptions/_form.html.erb:

>          <% end %>
> -        <%= f.submit "Save", :class => 'btn btn-primary create', :onsubmit => 'getDrugName' %>
> -      </div>
> -    </p>
> +    </div>
> +
> +    <div class="form-group">
> +      <%= f.label :pharmacy, "Filled By" %><br>
> +      <%= f.collection_select :pharmacy_id, Pharmacy.all, :id, :display_name %> 
> +    </div>
> +
> +    <div class="actions">
> +      <% if @patient.prescriptions.count == 0 %>
@maharris1011, prefer: @patient.prescriptions.empty?

—
Reply to this email directly or view it on GitHub.