22 lines
631 B
HTML
22 lines
631 B
HTML
@(name: &str, title: Option<&str>, value: Option<&str>)
|
|
|
|
<div class="input-wrapper">
|
|
@if let Some(title) = title {
|
|
<label for="@name">
|
|
<div class="input-title">@title</div>
|
|
@if let Some(value) = value {
|
|
<textarea class="input" name="@name">@value</textarea>
|
|
} else {
|
|
<textarea class="input" name="@name"></textarea>
|
|
}
|
|
</label>
|
|
} else {
|
|
@if let Some(value) = value {
|
|
<textarea class="input" name="@name">@value</textarea>
|
|
} else {
|
|
<textarea class="input" name="@name"></textarea>
|
|
}
|
|
}
|
|
</div>
|
|
|