From 9fc02de1fa112cbea848e2eb28a3458cc4f8e97f Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 9 Mar 2018 19:30:55 -0500 Subject: [PATCH] cleanup files and update checklist --- README.md | 4 ++-- views/metacodes/_form.js | 43 ---------------------------------------- views/metacodes/edit.js | 15 -------------- views/metacodes/new.js | 15 -------------- 4 files changed, 2 insertions(+), 75 deletions(-) delete mode 100644 views/metacodes/_form.js delete mode 100644 views/metacodes/edit.js delete mode 100644 views/metacodes/new.js diff --git a/README.md b/README.md index d58b9d77..9e90ece3 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ Checklist - [x] notifications list - [x] notification page - [x] list metacodes - - [ ] new metacode - - [ ] edit metacode + - [x] new metacode + - [x] edit metacode - [x] list metacode_sets - [x] new metacode set - [x] edit metacode set diff --git a/views/metacodes/_form.js b/views/metacodes/_form.js deleted file mode 100644 index a6369bf1..00000000 --- a/views/metacodes/_form.js +++ /dev/null @@ -1,43 +0,0 @@ -{ form_for(@metacode) do |f| } - { if @metacode.errors.any? } -
-

{ pluralize(@metacode.errors.count, "error") } prohibited this metacode from being saved:

- -
- { end } - -
- { f.label :name } - { f.text_field :name } -
-
- { unless @metacode.new_record? } -
- { f.label 'Current Icon' } - { image_tag @metacode.icon, width: 96 } -
- { end } -
- { 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 } -
-
-
- { f.label :color, "Color (hex with # sign)" } - { f.text_field :color } -
-
-
- { link_to 'Cancel', metacodes_path, { :className => 'button' } } - { f.submit :className => 'add' } -
-{ end } diff --git a/views/metacodes/edit.js b/views/metacodes/edit.js deleted file mode 100644 index 06afee4a..00000000 --- a/views/metacodes/edit.js +++ /dev/null @@ -1,15 +0,0 @@ -import React, { Component } from react - -class MyComponent extends Component { - render = () => { - return ( -
-
- { render 'form' } -
-
- ) - } -} - -export default MyComponent diff --git a/views/metacodes/new.js b/views/metacodes/new.js deleted file mode 100644 index ff10e7c1..00000000 --- a/views/metacodes/new.js +++ /dev/null @@ -1,15 +0,0 @@ -import React, { Component } from react - -class MyComponent extends Component { - render = () => { - return ( -
-
- { render 'form' } -
-
- ) - } -} - -export default MyComponent