2022-06-21 15:44:39 +00:00
|
|
|
@(name: &str, title: Option<&str>, value: Option<&str>, disabled: bool)
|
2020-12-08 21:59:55 +00:00
|
|
|
|
2022-06-21 15:44:39 +00:00
|
|
|
<div class="input-wrapper">
|
|
|
|
@if let Some(title) = title {
|
|
|
|
<label for="@name">
|
|
|
|
<div class="input-title">@title</div>
|
2022-06-21 18:29:44 +00:00
|
|
|
<textarea class="input" name="@name" @if disabled { disabled }>@if let Some(value) = value {@value}</textarea>
|
2022-06-21 15:44:39 +00:00
|
|
|
</label>
|
|
|
|
} else {
|
2022-06-21 18:29:44 +00:00
|
|
|
<textarea class="input" name="@name" @if disabled { disabled }>@if let Some(value) = value {@value}</textarea>
|
2022-06-21 15:44:39 +00:00
|
|
|
}
|
|
|
|
</div>
|