mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-05 22:31:57 +08:00
17 lines
763 B
Text
17 lines
763 B
Text
<%# locals: (name:, value: nil, label: nil, description: nil, attributes: {}) %>
|
|
<% value = typecast_body_params.str(name) || value %>
|
|
|
|
<div class="space-y-2">
|
|
<% if label %>
|
|
<label for="<%= name %>" class="block text-sm font-medium leading-6 text-gray-900"><%= label %></label>
|
|
<% end %>
|
|
<textarea
|
|
id="<%= name %>"
|
|
name="<%= name %>"
|
|
class="block w-full rounded-md border-0 py-1.5 shadow-sm ring-1 ring-inset focus:ring-2 focus:ring-inset text-sm sm:leading-6 text-gray-900 ring-gray-300 placeholder:text-gray-400 focus:ring-orange-600"
|
|
<%== html_attrs(attributes) %>
|
|
><%= value %></textarea>
|
|
<% if description %>
|
|
<p class="text-sm text-gray-500 leading-6" id="<%= name %>-description"><%= description %></p>
|
|
<% end %>
|
|
</div>
|