Explorer

html-ui.project-tools

description
The form to change the descriptions of the project on its page (definy_commit_parts with project_descriptions)
type
Fn(language: String, project: String, branch: String, response: @html-ui.response) -> List<@html.node>
expression
fn(language$990, project$0, branch$1, response$2) =>
  @core.list-concat(
    left: [
      @html.element(
        name: "h2",
        attributes: [],
        children: [
          @html.text(
            text: @html-ui.text(
              language: $990,
              en: "Project description",
              ja: "プロジェクトの説明",
              eo: "Priskribo de la projekto"
            )
          )
        ]
      )
    ],
    right: @html-ui.tool-form(
      tool: "definy_commit_parts",
      then: @core.string-join(items: ["/p/", $0, "/", $1], separator: ""),
      confirm: "",
      fields: @core.list-concat(
        left: [
          @html-ui.hidden(name: "project", value: $0),
          @html-ui.hidden(name: "branch", value: $1),
          @html-ui.hidden(name: "message", value: "Change the project description")
        ],
        right: @html-ui.description-fields(
          language: $990,
          prefix: "project_descriptions",
          texts: @definy.mcp-read-descriptions(value: @definy.json-get(value: $2.json, key: "descriptions"))
        )
      ),
      button: @html-ui.text(language: $990, en: "Save", ja: "保存", eo: "Konservi")
    )
  )
visibility
public
html-ui.project-tools (project html-ui, branch deploy-button, snapshot -OAeJ1OMDC9c1IdYFQHD-zp08inW6onoKyXsh0BwFf4)
id: mhVKjR0OkfxC5fdBBEeECvnCJwMYcUGU5gkSEZhX_-0
content hash: szF5JevNvC2ZZ7n28wwFFH1vBf0TRrZtgaEGFWRThOI