Module:CRTModel: Difference between revisions

No edit summary
No edit summary
Line 355: Line 355:
end
end
end
end
-- Actions section
addSectionRow(tbl, 'Actions')
-- Build the edit link URL
local editUrl = mw.uri.fullUrl(
"Special:FormStart",
{
form = "CRT model",
page_name = pageName
}
)
-- Create the edit button row
local editTr = tbl:tag('tr')
local editTd = editTr:tag('td'):attr('colspan', '2')
css(editTd, 'padding:0.2em 0.4em; text-align:center;')
-- Add edit button with primary action styling (blue tones)
editTd:wikitext('[' .. tostring(editUrl) .. ' <span style="display:inline-block;padding:0.5rem 1rem;background-color:#2563eb;color:#ffffff;border:1px solid #2563eb;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;cursor:pointer;">Edit this data</span>]')


return tostring(tbl)
return tostring(tbl)
MediaWiki Appliance - Powered by TurnKey Linux