mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
parent
c4a4d9c116
commit
85340a2fe9
@ -59,6 +59,10 @@
|
|||||||
{{ render_field(form.license, class_="not_txp col-sm-6") }}
|
{{ render_field(form.license, class_="not_txp col-sm-6") }}
|
||||||
{{ render_field(form.media_license, class_="col-sm-6") }}
|
{{ render_field(form.media_license, class_="col-sm-6") }}
|
||||||
</div>
|
</div>
|
||||||
|
<div class="pkg_meta row">
|
||||||
|
<div class="not_txp col-sm-6"></div>
|
||||||
|
<div class="not_txp col-sm-6">{{ _("If there is no media, set the Media License to the same as the License.") }}</div>
|
||||||
|
</div>
|
||||||
{{ render_field(form.desc, class_="pkg_meta", fieldclass="form-control markdown") }}
|
{{ render_field(form.desc, class_="pkg_meta", fieldclass="form-control markdown") }}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
@ -255,6 +255,9 @@ def create_edit_package_page(author=None, name=None):
|
|||||||
|
|
||||||
form.populate_obj(package) # copy to row
|
form.populate_obj(package) # copy to row
|
||||||
|
|
||||||
|
if package.type== PackageType.TXP:
|
||||||
|
package.license = package.media_license
|
||||||
|
|
||||||
mpackage_cache = {}
|
mpackage_cache = {}
|
||||||
package.provides.clear()
|
package.provides.clear()
|
||||||
mpackages = MetaPackage.SpecToList(form.provides_str.data, mpackage_cache)
|
mpackages = MetaPackage.SpecToList(form.provides_str.data, mpackage_cache)
|
||||||
|
Loading…
Reference in New Issue
Block a user