Index: trunk/extensions/Collection/Collection.templates.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | <?php foreach ($this->data['podpartners'] as $partner => $partnerData) { ?> |
65 | 65 | <form action="<?php echo htmlspecialchars(SkinTemplate::makeSpecialUrlSubpage('Collection', 'post_zip/')) ?>" method="get"> |
66 | 66 | <input type="hidden" name="partner" value="<?php echo htmlspecialchars($partner) ?>"/> |
67 | | - <input type="submit" value="<?php echo wfMsgHtml('coll-order_from_pp', htmlspecialchars($partnerData['name'])) ?>" class="order"/> |
| 67 | + <input type="submit" value="<?php echo wfMsgHtml('coll-order_from_pp', htmlspecialchars($partnerData['name'])) ?>" class="order" <?php if (count($this->data['collection']['items']) == 0) { ?> disabled="disabled"<?php } ?> /> |
68 | 68 | <a href="<?php echo htmlspecialchars($partnerData['url']) ?>" target="_blank"><?php echo wfMsgHtml('coll-about_pp', htmlspecialchars($partnerData['name'])) ?> <img src="<?php echo htmlspecialchars($partnerData['logourl']) ?>" alt="<?php echo htmlspecialchars($partnerData['name']) ?>"/></a> |
69 | 69 | </form> |
70 | 70 | <?php } ?> |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | <?php } ?> |
91 | 91 | </select> |
92 | 92 | <?php } ?> |
93 | | - <input id="downloadButton" type="submit" value="<?php echo $buttonLabel ?>" /> |
| 93 | + <input id="downloadButton" type="submit" value="<?php echo $buttonLabel ?>"<?php if (count($this->data['collection']['items']) == 0) { ?> disabled="disabled"<?php } ?> /> |
94 | 94 | </form> |
95 | 95 | </div> |
96 | 96 | |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | <label for="communityCollType"><?php $this->msg('coll-community_collection_label') ?></label> |
108 | 108 | <label for="communityCollTitle"><?php echo htmlspecialchars(Title::makeTitle($GLOBALS['wgCommunityCollectionNamespace'], wfMsgForContent('coll-collections'))->getPrefixedText() . '/') ?></label> |
109 | 109 | <input id="communityCollTitle" type="text" name="ccollname" disabled="disabled"></input><br /> |
110 | | - <input id="saveButton" type="submit" value="<?php $this->msg('coll-save_collection') ?>"></input> |
| 110 | + <input id="saveButton" type="submit" value="<?php $this->msg('coll-save_collection') ?>"<?php if (count($this->data['collection']['items']) == 0) { ?> disabled="disabled"<?php } ?>></input> |
111 | 111 | </form> |
112 | 112 | |
113 | 113 | <?php } else { |