re-add empty strings in translation (#682)

This commit is contained in:
fdb-hiroshima 2019-10-24 16:44:14 +02:00 committed by Ana Gelez
parent 028c4fdbc6
commit dd6d39135e
2 changed files with 5 additions and 5 deletions

View file

@ -26,7 +26,7 @@
.input_type("date") .input_type("date")
.set_prop("max", now) .set_prop("max", now)
.html(ctx.1)) .html(ctx.1))
@(Input::new("before", i18n!(ctx.1, "")) @(Input::new("before", i18n!(ctx.1, "To this date"))
.input_type("date") .input_type("date")
.set_prop("max", now) .set_prop("max", now)
.html(ctx.1)) .html(ctx.1))

View file

@ -15,23 +15,23 @@
<p class="error">@errs[0].message.as_ref().unwrap_or(&Cow::from("Unknown error"))</p> <p class="error">@errs[0].message.as_ref().unwrap_or(&Cow::from("Unknown error"))</p>
} }
@(Input::new("username", i18n!(ctx.1, "")) @(Input::new("username", i18n!(ctx.1, "Username"))
.default(&form.username) .default(&form.username)
.error(&errors) .error(&errors)
.set_prop("minlength", 1) .set_prop("minlength", 1)
.html(ctx.1)) .html(ctx.1))
@(Input::new("email", i18n!(ctx.1, "")) @(Input::new("email", i18n!(ctx.1, "Email"))
.default(&form.email) .default(&form.email)
.error(&errors) .error(&errors)
.set_prop("minlength", 1) .set_prop("minlength", 1)
.html(ctx.1)) .html(ctx.1))
@(Input::new("password", i18n!(ctx.1, "")) @(Input::new("password", i18n!(ctx.1, "Password"))
.default(&form.password) .default(&form.password)
.error(&errors) .error(&errors)
.set_prop("minlength", 8) .set_prop("minlength", 8)
.input_type("password") .input_type("password")
.html(ctx.1)) .html(ctx.1))
@(Input::new("password_confirmation", i18n!(ctx.1, "")) @(Input::new("password_confirmation", i18n!(ctx.1, "Password confirmation"))
.default(&form.password_confirmation) .default(&form.password_confirmation)
.error(&errors) .error(&errors)
.set_prop("minlength", 8) .set_prop("minlength", 8)