Skip to content

Conversation

@pmckernin
Copy link

@pmckernin pmckernin commented Aug 7, 2020

This pull requests address #85. I have removed the bootstrap classes from the winter-2020 branch.

<% elsif attribute.field_type.to_s.gsub(/_.*/, "").to_sym == :datetime -%>
<input type="datetime-local" id="<%= attribute.column_name %>_box" name="query_<%= attribute.column_name %>"
class="form-control" value="<%%= @<%= singular_table_name %>.<%= attribute.column_name %> %>">
value="<%%= @<%= singular_table_name %>.<%= attribute.column_name %> %>">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An extraneous new line appears to have been inserted here.

@jelaniwoods
Copy link
Contributor

@pmckernin Is it necessary to remove all the classes from each View, even though students will only ever get the index and show pages?

Unless, of course, we talk about more flags this quarter.

Copy link
Author

@pmckernin pmckernin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jelaniwoods That is a good question. If we do decide to start going over partials it would be good to have it match the rest of the generators. I think that we should ask @raghubetina what he thinks about removing the classes from all the partial forms as well as the show and index pages.

for="<%= attribute.column_name %>_box"><%= attribute.column_name.humanize %></label>
<label for="<%= attribute.column_name %>_box">
<%= attribute.column_name.humanize %>
</label>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raghubetina The new line was put here so the opening and closing label tags would match how they are being used the same as in lines 101-103.

@pmckernin
Copy link
Author

I spoke with @raghubetina about removing bootstrap from all of the draft:resource generators. Also, the extra line is to make sure our <label> match the way they are displayed throughout the rest of the gem. @jelaniwoods @raghubetina Want to get a go head to merge this.

@pmckernin pmckernin force-pushed the pm-remove-bootstrap-from-winter branch from 7f596a3 to aff224a Compare August 11, 2020 22:50
@pmckernin pmckernin merged commit aff224a into winter-2020 Aug 11, 2020
jelaniwoods pushed a commit that referenced this pull request Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants