rapidpro / chpro-microsite

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Step Detail Plugin #20

Closed mtrythall closed 6 years ago

mtrythall commented 6 years ago

Name WIP

Step detail plugin features the following:

  1. An icon
  2. Title
  3. Text (WYSIWYG)
  4. Files (under Tools)
  5. Related Links (under Examples)

Not sure how you want to handle 4 and 5 @nicolaslara

screenshot 2018-03-21 12 10 51

sodevious commented 6 years ago

Could it be "Step (complex)" akin to Hero/Hero (complex)?

sodevious commented 6 years ago

Should these icons be white to match the white numbers in the regular Step plugin?

37720223-35884dea-2cfd-11e8-8fa0-6b1ae07883da 37721830-e8b59eb0-2d00-11e8-814c-c2155d8f2c38

mtrythall commented 6 years ago

@sodevious Sure, make 'em white.

mtrythall commented 6 years ago

@sodevious can you plug this into the CMS? We should have plugins for them now. Take a stab at it please :-)

sodevious commented 6 years ago

@SmileyChris Can you please allow the Step model/plugin to take an svg icon?

screenshot 2018-04-04 14 28 34
sodevious commented 6 years ago

There is a bug in backend to this somehow. Fields I filled out once are now duplicated 3 times

screenshot 2018-04-04 19 19 26
sodevious commented 6 years ago

Also can you confirm this is how I need to pull the data for files and links? I'm not seeing anything render locally :/ @SmileyChris

{{ instance.step_links.all }}
{{ instance.step_files.all }}
screenshot 2018-04-04 19 24 00
mtrythall commented 6 years ago

I'm not seeing duplication here, I think we're good. LMK if you're still seeing this @sodevious

@SmileyChris Can you add the SVG icon field to this model please?

mtrythall commented 6 years ago

Yank

SmileyChris commented 6 years ago

@mtrythall you want the svg icon field displayed after body? (in admin form)

mtrythall commented 6 years ago

SVG icon field should be displayed before body. I believe it's high up everywhere else.

On Sun, Apr 8, 2018 at 7:29 PM Chris Beaven notifications@github.com wrote:

@mtrythall https://github.com/mtrythall you want the svg icon field displayed after body?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/rapidpro/chpro-microsite/issues/20#issuecomment-379591367, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFLDnRY9DlmWpDWXe4WRnelzjQ2Goe9ks5tmp0CgaJpZM4S0ii3 .

sodevious commented 6 years ago

@SmileyChris StepFiles should have a field for "Link Text"

screenshot 2018-04-09 12 16 42 screenshot 2018-04-09 12 17 06