cleanup files and update checklist

This commit is contained in:
Connor Turland 2018-03-09 19:30:55 -05:00
parent 81bfd8eb28
commit 9fc02de1fa
4 changed files with 2 additions and 75 deletions

View file

@ -57,8 +57,8 @@ Checklist
- [x] notifications list - [x] notifications list
- [x] notification page - [x] notification page
- [x] list metacodes - [x] list metacodes
- [ ] new metacode - [x] new metacode
- [ ] edit metacode - [x] edit metacode
- [x] list metacode_sets - [x] list metacode_sets
- [x] new metacode set - [x] new metacode set
- [x] edit metacode set - [x] edit metacode set

View file

@ -1,43 +0,0 @@
{ form_for(@metacode) do |f| }
{ if @metacode.errors.any? }
<div id="error_explanation">
<h2>{ pluralize(@metacode.errors.count, "error") } prohibited this metacode from being saved:</h2>
<ul>
{ @metacode.errors.full_messages.each do |msg| }
<li>{ msg }</li>
{ end }
</ul>
</div>
{ end }
<div className="field">
{ f.label :name }
{ f.text_field :name }
<div className="clearfloat"></div>
</div>
{ unless @metacode.new_record? }
<div className="field">
{ f.label 'Current Icon' }
{ image_tag @metacode.icon, width: 96 }
</div>
{ end }
<div className="field">
{ if @metacode.new_record? }
{ f.label 'Icon' }
{ else }
{ f.label 'Replace Icon: ' }
{ end }
{ f.hidden_field :manual_icon, value: nil }
{ f.file_field :aws_icon }
<div className="clearfloat"></div>
</div>
<div className="field">
{ f.label :color, "Color (hex with # sign)" }
{ f.text_field :color }
<div className="clearfloat"></div>
</div>
<div className="actions">
{ link_to 'Cancel', metacodes_path, { :className => 'button' } }
{ f.submit :className => 'add' }
</div>
{ end }

View file

@ -1,15 +0,0 @@
import React, { Component } from react
class MyComponent extends Component {
render = () => {
return (
<div id="yield">
<div className='centerContent'>
{ render 'form' }
</div>
</div>
)
}
}
export default MyComponent

View file

@ -1,15 +0,0 @@
import React, { Component } from react
class MyComponent extends Component {
render = () => {
return (
<div id="yield">
<div className='centerContent'>
{ render 'form' }
</div>
</div>
)
}
}
export default MyComponent