5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-03 23:15:45 +00:00

faltaban duracion y recomendaciones

This commit is contained in:
f 2018-02-08 16:11:53 -03:00
parent 07e5facf49
commit ea39a9ae8b
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7
4 changed files with 19 additions and 1 deletions

View file

@ -51,7 +51,7 @@ class PostsController < ApplicationController
def post_params
params.require(:post).permit(:title, :date, :content, :slug,
:cover, :layout, :permalink, :objetivos,
:duracion, :formato, :habilidades,
:duracion, :formato, :habilidades, :recomendaciones,
conocimientos: [], sesiones_ejercicios_relacionados: [],
materiales_requeridos: [], lang: {},
tags: [], categories: [])

View file

@ -64,6 +64,16 @@
= text_area 'post', 'objetivos', value: @post.get_front_matter(:objetivos),
class: 'form-control'
%small.text-muted.form-text= t('posts.objetivos_help')
.form-group
= label_tag 'post_recomendaciones', t('posts.recomendaciones')
= text_area 'post', 'recomendaciones', value: @post.get_front_matter(:recomendaciones),
class: 'form-control'
%small.text-muted.form-text= t('posts.recomendaciones_help')
.form-group
= label_tag 'post_duracion', t('posts.duracion')
= text_field 'post', 'duracion', value: @post.get_front_matter(:duracion),
class: 'form-control'
%small.text-muted.form-text= t('posts.duracion_help')
.form-group
= label_tag 'post_habilidades', t('posts.habilidades')
= select_tag 'post[habilidades]',

View file

@ -31,6 +31,10 @@ en:
objetivos_help: 'Objectives of this session'
permalink: 'Permanent link'
permalink_help: "If you want to access the post from a specific URL, use this field. Don\'t forget to start with a /"
recomendaciones: 'Recommendations'
recomendaciones_help: 'Recommendations for this session'
duracion: 'Duration'
duracion_help: "How long does the session take to finish?"
habilidades: 'Skill level'
habilidades_help: 'Skills required for this session'
formato: 'Format'

View file

@ -39,6 +39,10 @@ es:
sesiones_ejercicios_relacionados_help: 'Elige todas las sesiones relacionadas con esta'
materiales_requeridos: 'Materiales requeridos'
materiales_requeridos_help: 'Materiales necesarios para esta sesión'
recomendaciones: 'Recomendaciones'
recomendaciones_help: 'Recomendaciones para esta sesión'
duracion: 'Duración'
duracion_help: '¿Cuánto dura la sesión?'
lang:
es: 'Slug castellano'
en: 'Slug en inglés'